Submission #122057
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N=0; int avg=0; N=sc.nextInt(); for(int i=1;i<=N;i++){ avg=avg+(i*10000)/N; } System.out.println(avg); } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder社の給料 |
User | melon3 |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 275 Byte |
Status | WA |
Exec Time | 541 ms |
Memory | 23320 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 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 | WA | 541 ms | 23088 KB |
00_sample_02.txt | WA | 432 ms | 23092 KB |
test_100.txt | AC | 462 ms | 23212 KB |
test_14.txt | WA | 462 ms | 23080 KB |
test_29.txt | WA | 432 ms | 23216 KB |
test_4.txt | AC | 447 ms | 23216 KB |
test_42.txt | WA | 472 ms | 23096 KB |
test_48.txt | WA | 438 ms | 23188 KB |
test_54.txt | WA | 428 ms | 23320 KB |
test_59.txt | WA | 434 ms | 23200 KB |
test_71.txt | WA | 447 ms | 23224 KB |
test_72.txt | WA | 456 ms | 23096 KB |
test_84.txt | WA | 443 ms | 23140 KB |
test_96.txt | WA | 460 ms | 23076 KB |