結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-01 23:41:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 491 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-27 05:03:49 |
| 合計ジャッジ時間 | 709 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 3 RE * 1 |
ソースコード
import sys
line = input()
line = line.strip().split(" ")
if len(line) > 1:
res = int(line[0]) + int(line[1])
line = input()
print("{} {}".format(res, line.strip()))
sys.exit()
else:
line = line[0]
try:
n = int(line)
except Exception as e:
print("Hello World!")
sys.exit()
sum = 0
cnt = 0
try:
while True:
s = int(input())
sum += s
except Exception as e:
if cnt == 0:
print(int(n * (n + 1) / 2))
else:
print(int(s))