Submission #122091
Source Code Expand
import java.io.*; import java.util.*; import java.math.*; public class Main { public static void main(String[] args) throws java.io.IOException { //BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //String[] ia; Scanner in = new Scanner(System.in); int n = in.nextInt(); int tmp = 0; for(int i = 1;i <= n; ++i){ tmp += i * 10000; } System.out.println(tmp / n); } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder社の給料 |
User | HeK7wnhs0 |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 431 Byte |
Status | AC |
Exec Time | 531 ms |
Memory | 23232 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, test_100.txt, test_14.txt, test_29.txt, test_4.txt, test_42.txt, test_48.txt, test_54.txt, test_59.txt, test_71.txt, test_72.txt, test_84.txt, test_96.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 470 ms | 23220 KB |
00_sample_02.txt | AC | 475 ms | 23208 KB |
test_100.txt | AC | 478 ms | 23116 KB |
test_14.txt | AC | 450 ms | 23232 KB |
test_29.txt | AC | 447 ms | 23100 KB |
test_4.txt | AC | 468 ms | 23084 KB |
test_42.txt | AC | 469 ms | 23208 KB |
test_48.txt | AC | 471 ms | 23080 KB |
test_54.txt | AC | 475 ms | 23088 KB |
test_59.txt | AC | 470 ms | 23216 KB |
test_71.txt | AC | 460 ms | 23216 KB |
test_72.txt | AC | 531 ms | 23212 KB |
test_84.txt | AC | 485 ms | 23220 KB |
test_96.txt | AC | 487 ms | 23096 KB |