結果
問題 |
No.3022 一元一次式 mod 1000000000
|
ユーザー |
![]() |
提出日時 | 2025-04-16 15:42:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 81,944 KB |
実行使用メモリ | 76,032 KB |
最終ジャッジ日時 | 2025-04-16 15:45:28 |
合計ジャッジ時間 | 1,953 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)