結果

問題 No.593 4進FizzBuzz
ユーザー takakintakakin
提出日時 2020-05-18 23:34:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,441 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 14,632 KB
最終ジャッジ日時 2024-04-09 21:43:27
合計ジャッジ時間 29,271 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
10,624 KB
testcase_01 AC 23 ms
10,624 KB
testcase_02 AC 24 ms
10,624 KB
testcase_03 AC 24 ms
10,624 KB
testcase_04 AC 23 ms
10,752 KB
testcase_05 AC 23 ms
10,752 KB
testcase_06 AC 26 ms
10,624 KB
testcase_07 AC 25 ms
10,752 KB
testcase_08 AC 25 ms
10,752 KB
testcase_09 AC 27 ms
10,880 KB
testcase_10 AC 24 ms
10,752 KB
testcase_11 AC 24 ms
10,624 KB
testcase_12 AC 24 ms
10,752 KB
testcase_13 AC 25 ms
10,880 KB
testcase_14 AC 27 ms
10,624 KB
testcase_15 AC 25 ms
10,752 KB
testcase_16 AC 1,363 ms
14,448 KB
testcase_17 AC 1,399 ms
14,452 KB
testcase_18 AC 1,361 ms
14,576 KB
testcase_19 AC 1,366 ms
14,612 KB
testcase_20 AC 1,368 ms
14,576 KB
testcase_21 AC 1,363 ms
14,448 KB
testcase_22 AC 1,395 ms
14,504 KB
testcase_23 AC 1,362 ms
14,576 KB
testcase_24 AC 1,388 ms
14,448 KB
testcase_25 AC 1,380 ms
14,448 KB
testcase_26 AC 1,377 ms
14,576 KB
testcase_27 AC 1,436 ms
14,632 KB
testcase_28 AC 1,404 ms
14,448 KB
testcase_29 AC 1,374 ms
14,580 KB
testcase_30 AC 1,309 ms
14,580 KB
testcase_31 AC 1,323 ms
14,576 KB
testcase_32 AC 1,317 ms
14,448 KB
testcase_33 AC 1,441 ms
14,500 KB
testcase_34 AC 1,387 ms
14,576 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