結果
問題 |
No.3022 一元一次式 mod 1000000000
|
ユーザー |
![]() |
提出日時 | 2025-04-15 22:00:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,260 KB |
実行使用メモリ | 76,596 KB |
最終ジャッジ日時 | 2025-04-15 22:02:11 |
合計ジャッジ時間 | 1,959 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 20 |
ソースコード
n = int(input()) a = ord('a') three = ord('d') - a five = ord('f') - a one = ord('b') - a for i in range(n): current = i + one if current % three == 0 and current % five == 0: print("FizzBuzz") elif current % three == 0: print("Fizz") elif current % five == 0: print("Buzz") else: print(current)