結果

問題 No.851 テストケース
ユーザー 0w1
提出日時 2019-07-31 20:20:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 516 bytes
コンパイル時間 1,927 ms
コンパイル使用メモリ 197,556 KB
最終ジャッジ日時 2025-01-07 10:20:01
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 16 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  auto get_ints = []() {
    vector<int> res;
    string buf;
    getline(cin, buf);
    stringstream ss(buf);
    for (string s; ss >> s; ) {
      res.push_back(stoi(s));
    }
    return res;
  };

  int N = get_ints()[0];
  assert(N == 3);

  vector<int> r1 = get_ints();
  if (r1.size() == 3) {
    cout << "\"assert\"" << endl;
  } else {
    int s = r1[0];
    s += get_ints()[0];
    s += get_ints()[0];
    cout << s << endl;
  }
  
  return 0;
}
0