結果
問題 |
No.3022 一元一次式 mod 1000000000
|
ユーザー |
![]() |
提出日時 | 2025-04-15 21:58:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 81,404 KB |
実行使用メモリ | 75,776 KB |
最終ジャッジ日時 | 2025-04-15 21:59:22 |
合計ジャッジ時間 | 2,314 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)