結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー mahnamahna
提出日時 2020-05-09 11:27:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 955 ms / 3,000 ms
コード長 287 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-09-18 18:32:59
合計ジャッジ時間 7,525 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,736 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 16 ms
7,732 KB
testcase_03 AC 16 ms
7,836 KB
testcase_04 AC 15 ms
7,860 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 18 ms
7,904 KB
testcase_07 AC 36 ms
7,728 KB
testcase_08 AC 113 ms
7,804 KB
testcase_09 AC 215 ms
7,768 KB
testcase_10 AC 765 ms
7,860 KB
testcase_11 AC 794 ms
7,840 KB
testcase_12 AC 828 ms
7,776 KB
testcase_13 AC 832 ms
7,960 KB
testcase_14 AC 843 ms
7,804 KB
testcase_15 AC 861 ms
7,904 KB
testcase_16 AC 955 ms
7,788 KB
testcase_17 AC 16 ms
7,908 KB
testcase_18 AC 16 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8

ct = int(input().rstrip())

ans = 0
for i in range(ct):
    ans += int(input().rstrip())

print(ans)


# <?php
#     $ct = trim(fgets(STDIN));
    
#     $ans = 0;
#     for($i = 0; $i < $ct; $i++) {
#         $ans += trim(fgets(STDIN));
#     }

#     echo $ans;
# ?>

0