結果
| 問題 |
No.546 オンリー・ワン
|
| コンテスト | |
| ユーザー |
masa_masa0128
|
| 提出日時 | 2017-08-09 11:14:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 468 bytes |
| コンパイル時間 | 807 ms |
| コンパイル使用メモリ | 72,900 KB |
| 最終ジャッジ日時 | 2025-01-05 02:04:33 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | AC * 2 TLE * 5 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(void){
int N, H, L;
int count = 0;
cin >> N >> L >> H;
vector<int> C;
for (int i = 0; i < N; i++){
int x;
cin >> x;
C.push_back(x);
}
for (int i = L; i < H+1; i++) {
int flag = 0;
for (int j = 0; j < N; j++) {
if (i%C[j] == 0) {
flag += 1;
}
}
if (flag == 1) {
count += 1;
}
}
cout << count << endl;
return 0;
}
masa_masa0128