Submission #00091
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #include<stdio.h> int main() { int n,i,j,k; long b=0,c; scanf ( "%d" ,&n); int a[10000]; for (i=0;i<n;i++){ scanf ( "%d" ,&a[i]); } for (i=0;i<n;i++){ c=1; for (j=0;j<n;j++){ if (i!=j) c=c*a[j]; } if (c>b) { b=c;; k=i+1; } } printf ( "%d\n" ,k); return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0003 - Product Maximization |
ユーザー名 | souma0104 |
投稿日時 | 2020-04-25 22:17:01 |
言語 | C |
状態 | Runtime Error |
得点 | 0 |
ソースコード長 | 299 Byte |
最大実行時間 | 86 ms |
最大メモリ使用量 | 600 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 300 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 19 ms | 376 KB |
1
|
in02.txt | AC | 20 ms | 264 KB |
1
|
in03.txt | AC | 18 ms | 316 KB |
1
|
in04.txt | AC | 22 ms | 364 KB |
1
|
in05.txt | AC | 18 ms | 420 KB |
1
|
in06.txt | RE | 86 ms | 460 KB |
1
|
in07.txt | RE | 30 ms | 484 KB |
1
|
in08.txt | RE | 31 ms | 504 KB |
1
|
in09.txt | RE | 25 ms | 524 KB |
1
|
in10.txt | RE | 27 ms | 548 KB |
1
|
in11.txt | WA | 24 ms | 444 KB |
1
|
in12.txt | RE | 22 ms | 488 KB |
1
|
in13.txt | RE | 27 ms | 516 KB |
1
|
in14.txt | RE | 29 ms | 532 KB |
1
|
in15.txt | RE | 22 ms | 552 KB |
1
|
in16.txt | RE | 27 ms | 572 KB |
1
|
in17.txt | RE | 25 ms | 464 KB |
1
|
in18.txt | RE | 23 ms | 488 KB |
1
|
in19.txt | RE | 29 ms | 508 KB |
1
|
in20.txt | RE | 37 ms | 560 KB |
1
|
in21.txt | RE | 31 ms | 556 KB |
1
|
in22.txt | RE | 30 ms | 580 KB |
1
|
in23.txt | RE | 31 ms | 600 KB |
1
|
in24.txt | AC | 23 ms | 532 KB |
1
|
in25.txt | AC | 21 ms | 328 KB |
1
|
in26.txt | AC | 20 ms | 344 KB |
1
|
in27.txt | AC | 23 ms | 384 KB |
1
|
in28.txt | RE | 28 ms | 420 KB |
1
|
in29.txt | RE | 26 ms | 464 KB |
1
|
sample01.txt | AC | 23 ms | 460 KB |
1
|
sample02.txt | AC | 23 ms | 504 KB |
1
|