Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Test {
- public static void main(String[] args) {
- long start = System.currentTimeMillis();
- Scanner scanner = new Scanner(System.in);
- long sum = 0;
- for (int i = 0; i < 10000; i++) {
- sum += scanner.nextInt();
- }
- System.out.println(sum);
- System.out.println(System.currentTimeMillis() - start);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement