結果
| 問題 |
No.339 何人が回答したのか
|
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-07-09 18:45:25 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 544 bytes |
| コンパイル時間 | 2,401 ms |
| コンパイル使用メモリ | 77,512 KB |
| 実行使用メモリ | 56,060 KB |
| 最終ジャッジ日時 | 2024-10-07 04:48:29 |
| 合計ジャッジ時間 | 11,731 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 61 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] a = new int[N];
for(int i = 0; i < N; i++) {
a[i] = sc.nextInt();
}
int ans = 0;
for(int x = 1; x < N; x++) {
boolean flg = true;
for(int i = 0; i < N; i++) {
if((x * a[i]) % 100 != 0) {
flg = false;
break;
}
}
if(flg) {
ans = x;
break;
}
}
System.out.println(ans);
}
}
takeya_okino