mirror of
https://github.com/Xevion/contest.git
synced 2025-12-15 12:11:27 -06:00
problem 10 11 12
This commit is contained in:
26
uil/october-2013/11/.vscode/launch.json
vendored
Normal file
26
uil/october-2013/11/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "java",
|
||||
"name": "CodeLens (Launch) - problem11",
|
||||
"request": "launch",
|
||||
"mainClass": "problem11"
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "CodeLens (Launch) - problem9",
|
||||
"request": "launch",
|
||||
"mainClass": "problem9"
|
||||
},
|
||||
{
|
||||
"type": "java",
|
||||
"name": "Debug (Launch) - Current File",
|
||||
"request": "launch",
|
||||
"mainClass": "${file}"
|
||||
}
|
||||
]
|
||||
}
|
||||
3
uil/october-2013/11/input.dat
Normal file
3
uil/october-2013/11/input.dat
Normal file
@@ -0,0 +1,3 @@
|
||||
1
|
||||
2
|
||||
3
|
||||
BIN
uil/october-2013/11/out/production/11/problem11.class
Normal file
BIN
uil/october-2013/11/out/production/11/problem11.class
Normal file
Binary file not shown.
14
uil/october-2013/11/src/problem11.java
Normal file
14
uil/october-2013/11/src/problem11.java
Normal file
@@ -0,0 +1,14 @@
|
||||
import static java.lang.System.*;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class problem11 {
|
||||
public static void main(String[] args) throws FileNotFoundException {
|
||||
File input = new File("input.dat");
|
||||
Scanner read = new Scanner(input);
|
||||
while(read.hasNextInt())
|
||||
out.println(read.nextInt() * 3);
|
||||
read.close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user