結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
|
提出日時 | 2019-04-01 23:37:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-11-27 04:54:31 |
合計ジャッジ時間 | 698 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 3 RE * 2 |
ソースコード
line = input() try: n = int(line) except Exception as e: print("Hello World") 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))