結果

問題 No.546 オンリー・ワン
ユーザー YNonoharaYNonohara
提出日時 2017-07-19 15:59:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 308 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2024-04-17 04:03:59
合計ジャッジ時間 3,690 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N, L, H = [int(i) for i in input().split()]
C = [int(i) for i in input().split()]
ans_cnt=0
for j in range(L,H+1):
    cnt=1
    sub_cnt=0
    for k in range(N):
        if j%C[k]==0:
            sub_cnt+=1
            if sub_cnt==2:
                break
    if sub_cnt==1:
        ans_cnt+=1
print(ans_cnt)
0