結果

問題 No.8043 yukicoderへようこそ!
ユーザー fumiphys
提出日時 2019-04-01 23:46:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 670 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-27 05:17:02
合計ジャッジ時間 789 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 2 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
line = input()
if len(line.split(" ")) > 1:
    a, b = list(map(int, line.strip().split(" ")))
    res = a + b
    line = input()
    print("{} {}".format(res, line))
    sys.exit()
try:
    line = int(line)
except Exception as e:
    print("Hello World!")
    sys.exit()

try:
    L = input()
except Exception as e:
    print(line * (line + 1) / 2)
    sys.exit()

if len(L.split(" ")) > 1:
    val = list(map(int, L.strip().split(" ")))
    val = 0
    for v in val:
        sum += val
    print(val)
    sys.exit()
else:
    sum = 0
    sum += int(L)
    for i in range(0, line - 1):
        a = int(input())
        sum += a
    print(sum)
    sys.exit()
0