結果
問題 | No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用) |
ユーザー | yassu0320 |
提出日時 | 2021-07-07 08:03:00 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 760 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 10,952 KB |
実行使用メモリ | 21,124 KB |
最終ジャッジ日時 | 2023-09-14 04:33:59 |
合計ジャッジ時間 | 2,366 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
9,820 KB |
testcase_01 | AC | 28 ms
9,844 KB |
testcase_02 | AC | 26 ms
9,780 KB |
testcase_03 | AC | 26 ms
9,852 KB |
testcase_04 | AC | 26 ms
9,904 KB |
testcase_05 | AC | 27 ms
9,800 KB |
testcase_06 | AC | 28 ms
10,044 KB |
testcase_07 | AC | 29 ms
10,976 KB |
testcase_08 | AC | 42 ms
15,464 KB |
testcase_09 | AC | 57 ms
21,124 KB |
testcase_10 | AC | 104 ms
17,688 KB |
testcase_11 | AC | 103 ms
17,304 KB |
testcase_12 | AC | 111 ms
18,520 KB |
testcase_13 | AC | 108 ms
18,708 KB |
testcase_14 | AC | 108 ms
17,448 KB |
testcase_15 | AC | 113 ms
18,668 KB |
testcase_16 | AC | 121 ms
19,384 KB |
testcase_17 | AC | 26 ms
9,784 KB |
testcase_18 | AC | 29 ms
9,708 KB |
ソースコード
#!/usr/bin/env python3 from sys import setrecursionlimit, stdin from typing import Iterable INF: int = 2**62 MOD: int = 10**9 + 7 setrecursionlimit(10**6) def inputs(type_=int): ins = input().split(' ') ins = [x for x in ins if x != ''] if isinstance(type_, Iterable): return [t(x) for t, x in zip(type_, ins)] else: return list(map(type_, ins)) def input_(type_=int): a, = inputs(type_) return a inputi = input_ def inputstr(): return input_(str) # b/aの切り上げ def ceil(b, a): return (a + b - 1) // a def answer(res) -> None: print(res) exit() def compute(): return def main(): n = inputi() xs = inputs() print(sum(xs)) if __name__ == '__main__': main()