結果
問題 |
No.3022 一元一次式 mod 1000000000
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:38:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 382 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 81,868 KB |
実行使用メモリ | 76,288 KB |
最終ジャッジ日時 | 2025-06-12 19:38:25 |
合計ジャッジ時間 | 2,133 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 20 |
ソースコード
n = int(input()) one = len('a') three = len('aaa') five = len('abcde') for i in range(one, n + one): divisible_by_three = i % three == 0 divisible_by_five = i % five == 0 if divisible_by_three and divisible_by_five: print('FizzBuzz') elif divisible_by_three: print('Fizz') elif divisible_by_five: print('Buzz') else: print(i)