結果
問題 |
No.546 オンリー・ワン
|
ユーザー |
|
提出日時 | 2017-07-27 22:36:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 58,360 KB |
実行使用メモリ | 10,020 KB |
最終ジャッジ日時 | 2024-10-10 02:14:18 |
合計ジャッジ時間 | 3,962 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 -- * 1 |
other | -- * 7 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main() { int N, L, H; cin >> N; cin >> L; cin >> H; vector<int> v(N); for(int i = 0; i < N; i++) cin >> v[i]; int count = 0; for(int i = L; i <= H; i++) { int x = 0; for(auto &c : v) { if(!(i%c)) x++; } if (x == 1) count++; } cout << count; }