first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class Main{
public static void main(String args[]){
File x = new File("DATA.in");
try{
long s = 0;
Scanner sc = new Scanner(x);
while(sc.hasNext()){
try{
String t = sc.next();
s += Integer.parseInt(t);
}catch(NumberFormatException e){
}
}
System.out.println(s);
}catch(FileNotFoundException e){
}
}
}