結果

問題 No.593 4進FizzBuzz
ユーザー takakintakakin
提出日時 2020-05-18 23:34:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 79,664 KB
最終ジャッジ日時 2024-04-09 21:43:37
合計ジャッジ時間 4,092 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,460 KB
testcase_01 AC 32 ms
52,960 KB
testcase_02 AC 30 ms
52,616 KB
testcase_03 AC 30 ms
52,292 KB
testcase_04 AC 30 ms
52,304 KB
testcase_05 AC 30 ms
52,276 KB
testcase_06 AC 31 ms
52,896 KB
testcase_07 AC 33 ms
52,004 KB
testcase_08 AC 30 ms
53,288 KB
testcase_09 AC 30 ms
52,760 KB
testcase_10 AC 30 ms
54,044 KB
testcase_11 AC 30 ms
52,824 KB
testcase_12 AC 31 ms
52,128 KB
testcase_13 AC 31 ms
52,608 KB
testcase_14 AC 29 ms
53,684 KB
testcase_15 AC 30 ms
51,820 KB
testcase_16 AC 77 ms
79,144 KB
testcase_17 AC 77 ms
79,132 KB
testcase_18 AC 77 ms
79,144 KB
testcase_19 AC 79 ms
79,664 KB
testcase_20 AC 77 ms
79,020 KB
testcase_21 AC 78 ms
79,112 KB
testcase_22 AC 79 ms
79,456 KB
testcase_23 AC 80 ms
79,060 KB
testcase_24 AC 79 ms
79,180 KB
testcase_25 AC 77 ms
79,188 KB
testcase_26 AC 80 ms
79,208 KB
testcase_27 AC 80 ms
79,188 KB
testcase_28 AC 77 ms
79,288 KB
testcase_29 AC 79 ms
79,456 KB
testcase_30 AC 67 ms
69,084 KB
testcase_31 AC 68 ms
69,488 KB
testcase_32 AC 67 ms
69,576 KB
testcase_33 AC 78 ms
79,480 KB
testcase_34 AC 79 ms
78,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
N=input()
n1,n2=0,0
sig=1
for n in N:
  n1+=int(n)
  n2+=sig*int(n)
  sig*=-1
if n1%3==0:
  if n2%5==0:
    print("FizzBuzz")
  else:
    print("Fizz")
elif n2%5==0:
  print("Buzz")
else:
  print(N)
0