結果

問題 No.546 オンリー・ワン
ユーザー ckawatakckawatak
提出日時 2017-10-18 16:01:36
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 249 bytes
コンパイル時間 2,500 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 75,780 KB
最終ジャッジ日時 2023-08-11 20:15:39
合計ジャッジ時間 4,364 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
75,780 KB
testcase_01 AC 73 ms
71,284 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,L,H = list(map(int, input().split(' ')))
ns = list(map(int, input().split(' ')))

solution = 0
for i in range(L, H+1):
    yes = 0
    for n in ns:
        if i % n == 0:
            yes += 1
    if yes == 1:
        solution += 1
print(solution)
0