結果

問題 No.316 もっと刺激的なFizzBuzzをください
ユーザー kawanishi9726kawanishi9726
提出日時 2019-04-09 01:38:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 156 bytes
コンパイル時間 539 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 816,780 KB
最終ジャッジ日時 2023-09-14 15:48:44
合計ジャッジ時間 5,552 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
32,752 KB
testcase_01 AC 282 ms
161,140 KB
testcase_02 RE -
testcase_03 AC 16 ms
7,748 KB
testcase_04 RE -
testcase_05 TLE -
testcase_06 AC 17 ms
8,276 KB
testcase_07 AC 16 ms
7,788 KB
testcase_08 AC 15 ms
7,788 KB
testcase_09 RE -
testcase_10 AC 22 ms
11,884 KB
testcase_11 AC 16 ms
8,256 KB
testcase_12 AC 18 ms
9,272 KB
testcase_13 AC 18 ms
8,968 KB
testcase_14 AC 17 ms
9,076 KB
testcase_15 AC 17 ms
8,964 KB
testcase_16 AC 50 ms
30,920 KB
testcase_17 AC 17 ms
9,160 KB
testcase_18 AC 22 ms
11,896 KB
testcase_19 AC 36 ms
20,016 KB
testcase_20 AC 36 ms
19,544 KB
testcase_21 AC 48 ms
27,648 KB
testcase_22 AC 17 ms
8,832 KB
testcase_23 AC 22 ms
12,008 KB
testcase_24 AC 19 ms
9,364 KB
testcase_25 AC 79 ms
46,708 KB
testcase_26 AC 16 ms
7,892 KB
testcase_27 AC 16 ms
7,728 KB
testcase_28 AC 18 ms
9,240 KB
testcase_29 AC 23 ms
12,080 KB
testcase_30 AC 150 ms
84,496 KB
testcase_31 AC 73 ms
34,232 KB
testcase_32 MLE -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a,b,c = map(int,input().split())
n += 1

ans = list(range(a,n,a))
ans += list(range(b,n,b))
ans += list(range(c,n,c))

print(len(set(ans)))
0