結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
|
提出日時 | 2019-04-01 23:38:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 75 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-27 04:55:21 |
合計ジャッジ時間 | 675 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 5 |
ソースコード
import sys line = input() 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))