結果
問題 | No.339 何人が回答したのか |
ユーザー |
|
提出日時 | 2018-02-24 12:12:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 588 bytes |
コンパイル時間 | 1,438 ms |
コンパイル使用メモリ | 169,024 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 05:57:34 |
合計ジャッジ時間 | 3,274 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
ソースコード
#include <bits/stdc++.h>#define FOR(i,a,b) for(int i = (a); i < (b); ++i)#define REP(i,n) FOR(i,0,n)#define RREP(i,n) for(int i = (n) - 1; (i) >= 0; --i)#define SZ(n) (int)(n).size()#define ALL(n) (n).begin(), (n).end()#define MOD LL(1e9 + 7)#define INF 1000000using namespace std;typedef long long LL;typedef vector<int> VI;typedef pair<int, int> PI;long long gcd(long long x, long long y) {return (y ? gcd(y, x % y) : x);}int main() {int n;cin >> n;VI a(n);int t = 100;REP(i, n) {cin >> a[i];t = gcd(t, a[i]);}cout << 100 / t << endl;return 0;}