結果
問題 |
No.316 もっと刺激的なFizzBuzzをください
|
ユーザー |
|
提出日時 | 2021-07-15 21:58:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,248 KB |
最終ジャッジ日時 | 2024-07-04 23:08:57 |
合計ジャッジ時間 | 4,682 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | TLE * 1 -- * 32 |
ソースコード
def sigeki(N, a, b, c): not_cnt = 0 for n in range(1, N + 1): if (n % a > 0) and (n % b > 0) and (n % c > 0): not_cnt += 1 result = N - not_cnt return result def main(): N = int(input()) a, b, c = map(int, input().split()) print(sigeki(N, a, b, c)) if __name__ == '__main__': main()