結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-01 23:40:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 471 bytes |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-27 05:00:47 |
| 合計ジャッジ時間 | 769 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 4 RE * 1 |
ソースコード
import sys
line = input()
line = line.strip().split(" ")
if len(line) > 1:
print(int(line[0]) + int(line[1]))
line = input()
print(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))