結果
問題 | No.339 何人が回答したのか |
ユーザー |
|
提出日時 | 2018-08-24 06:08:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 554 bytes |
コンパイル時間 | 1,810 ms |
コンパイル使用メモリ | 169,072 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 21:40:12 |
合計ジャッジ時間 | 3,725 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define sorted(a) sort(a.begin(), a.end());typedef long long ll;const long mod = 1e9 + 7;int main(void) {#ifdef DEBUGfreopen("input.txt", "r", stdin);#endifios::sync_with_stdio(false);cin.tie(0);int N;cin >> N;vector<int> A(N);for (int i = 0; i < N; i++)cin >> A[i];for (int i = 1; i <= 100; i++) {for (int j = 0; j < N; j++) {if ((i * A[j]) % 100)break;else if (j == N - 1) {cout << i << endl;return 0;}}}}