結果
| 問題 |
No.546 オンリー・ワン
|
| コンテスト | |
| ユーザー |
YNonohara
|
| 提出日時 | 2017-07-19 16:44:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 716 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,572 KB |
| 最終ジャッジ日時 | 2024-10-08 14:26:42 |
| 合計ジャッジ時間 | 4,333 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 2 TLE * 1 -- * 4 |
ソースコード
N, L, H = [int(i) for i in input().split()]
C = [int(i) for i in input().split()]
ans_cnt=0
if N==1 and C[0]==1:
print(H-L+1)
else:
for j in range(L,H+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)
YNonohara