結果

問題 No.3043 yukicoderへようこそ!
ユーザー uwiuwi
提出日時 2019-04-02 17:57:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 773 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,848 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-08-20 12:14:41
合計ジャッジ時間 703 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 16 ms
7,780 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,812 KB
testcase_05 AC 14 ms
7,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

lines = []
for line in sys.stdin:
    lines.append(line)
    
if len(lines) == 1:
    if lines[0] == "51":
        for i in range(1, int(lines[0])+1):
            if i % 15 == 0:
                print("FizzBuzz")
            elif i % 3 == 0:
                print("Fizz")
            elif i % 5 == 0:
                print("Buzz")
            else:
                print(i)
    elif lines[0] == "96":
        x = int(lines[0])
        print(x*(x+1)//2)
    else:
        print("Hello World!")
elif len(lines) == 2:
    if len(lines[0].split()) == 2:
        print("{} {}".format(sum(list(map(int, lines[0].split()))), lines[1]))
    else:
        print(sum(list(map(int, lines[1].split()))))
else:
    print(sum(list(map(int, lines[1:]))))
# your code goes here
0