結果
| 問題 |
No.339 何人が回答したのか
|
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-07-09 18:49:24 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 1,000 ms |
| コード長 | 548 bytes |
| コンパイル時間 | 2,380 ms |
| コンパイル使用メモリ | 74,192 KB |
| 実行使用メモリ | 54,384 KB |
| 最終ジャッジ日時 | 2024-10-07 04:50:44 |
| 合計ジャッジ時間 | 12,595 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 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 <= 100; 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