結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー pekempeypekempey
提出日時 2019-09-26 01:57:28
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 1,091 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 70,716 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 09:44:25
合計ジャッジ時間 2,320 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 8 ms
4,348 KB
testcase_08 AC 29 ms
4,348 KB
testcase_09 AC 27 ms
4,348 KB
testcase_10 AC 62 ms
4,348 KB
testcase_11 AC 64 ms
4,348 KB
testcase_12 AC 65 ms
4,348 KB
testcase_13 AC 66 ms
4,348 KB
testcase_14 AC 68 ms
4,348 KB
testcase_15 AC 70 ms
4,348 KB
testcase_16 AC 77 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// https://github.com/pekempey/banana
// -------------------------------------------
// let n = readint 0 in
// let mut ans = 0 in
// for i = 0 to n - 1 do
//   ans += readint 0
// done;
// println ans
// -------------------------------------------
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
template<class T> int print(T a) { std::cout << a << ' '; return 0; }
template<class T> int println(T a) { std::cout << a << '\n'; return 0; }
int print_newline(int dummy) { std::cout << '\n'; return 0; }
long long readint(int dummy) { long long a; std::cin >> a; return a; }
std::string readstr(int dummy) { std::string a; std::cin >> a; return a; }
std::vector<long long> vecint(long long n) { return std::vector<long long>(n, 0); }
int main() {
long long _7=0;
auto _8=readint(_7);
auto _3=_8;
long long _9=0;
auto _4=_9;
long long _10=0;
auto &_11=_3;
long long _12=1;
auto _13=_11-_12;
for(int _5=_10;_5<=_13;_5++){
long long _14=0;
auto _15=readint(_14);
_4+=_15;
}
auto _16=0;
auto &_17=_4;
auto _18=println(_17);
auto _19=_18;
auto _20=_19;
auto _21=_20;
}
0