結果

問題 No.593 4進FizzBuzz
ユーザー 👑 H20H20
提出日時 2021-11-25 14:21:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 549 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 300,544 KB
最終ジャッジ日時 2023-09-10 14:12:11
合計ジャッジ時間 13,443 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,592 KB
testcase_01 AC 74 ms
71,556 KB
testcase_02 AC 73 ms
71,268 KB
testcase_03 AC 74 ms
71,632 KB
testcase_04 AC 81 ms
71,280 KB
testcase_05 AC 73 ms
71,368 KB
testcase_06 AC 75 ms
71,280 KB
testcase_07 AC 76 ms
71,272 KB
testcase_08 AC 74 ms
71,492 KB
testcase_09 AC 73 ms
71,452 KB
testcase_10 AC 73 ms
71,436 KB
testcase_11 AC 75 ms
71,236 KB
testcase_12 AC 75 ms
71,424 KB
testcase_13 AC 73 ms
71,372 KB
testcase_14 AC 73 ms
71,300 KB
testcase_15 AC 73 ms
71,440 KB
testcase_16 AC 448 ms
298,900 KB
testcase_17 WA -
testcase_18 AC 417 ms
299,700 KB
testcase_19 AC 473 ms
300,280 KB
testcase_20 WA -
testcase_21 AC 413 ms
299,676 KB
testcase_22 AC 472 ms
300,296 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 475 ms
300,232 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 476 ms
300,088 KB
testcase_30 AC 414 ms
299,604 KB
testcase_31 AC 414 ms
299,848 KB
testcase_32 AC 413 ms
299,720 KB
testcase_33 AC 468 ms
300,264 KB
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = list(input())
for i in range(len(N)):
    N[i]=int(N[i])

isFizz = sum(N)%3==0
temp = 0
for i in range(len(N)):
    if i%2==0:
        temp+=N[i]
    else:
        temp-=N[i]
isBuzz = temp%11==0
if isFizz and isBuzz:
    print('FizzBuzz')
elif isFizz:
    print('Fizz')
elif isBuzz:
    print('Buzz')
else:
    print(''.join(map(str,N)))
0