結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-02 17:57:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 773 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-30 13:56:05 |
| 合計ジャッジ時間 | 748 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 3 |
ソースコード
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