結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー alpha_virginisalpha_virginis
提出日時 2017-03-12 14:26:07
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 1,291 bytes
コンパイル時間 1,454 ms
コンパイル使用メモリ 164,212 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-12 11:58:33
合計ジャッジ時間 1,944 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#ifndef LOCAL_
#define fprintf if( false ) fprintf
#endif // LOCAL_
#define dumpi(x1) fprintf(stderr, "#%s.%d (%s) = (%d)\n", __func__, __LINE__, #x1, x1);
#define dumpii(x1, x2) fprintf(stderr, "#%s.%d (%s, %s) = (%d, %d)\n", __func__, __LINE__, #x1, #x2, x1, x2);
#define dumpiii(x1, x2, x3) fprintf(stderr, "#%s.%d (%s, %s, %s) = (%d, %d, %d)\n", __func__, __LINE__, #x1, #x2, #x3, x1, x2, x3);
#define dumpl(x1) fprintf(stderr, "#%s.%d (%s) = (%ld)\n", __func__, __LINE__, #x1, x1);
#define dumpll(x1, x2) fprintf(stderr, "#%s.%d (%s, %s) = (%ld, %ld)\n", __func__, __LINE__, #x1, #x2, x1, x2);
#define dumpd(x1) fprintf(stderr, "#%s.%d (%s) = (%lf)\n", __func__, __LINE__, #x1, x1);
#define dumpdd(x1, x2) fprintf(stderr, "#%s.%d (%s, %s) = (%lf, %lf)\n", __func__, __LINE__, #x1, #x2, x1, x2);

struct S002 {
  int i() {
    int x;
    if( scanf("%d", &x) <= 0 ) exit(0);
    return x;
  }
  std::string s() {
    std::string str;
    if( not (std::cin >> str) ) exit(0);
    return str;
  }
};

struct Solver {
  void solve() {
    S002 r;
    int a = r.i();
    int b = r.i();
    std::string s = r.s();
    printf("%d %s\n", a + b, s.c_str());
  }  
};

int main() {
  for(;;) {
    Solver *s = new Solver();
    s->solve();
    delete s;
  }
  return 0;
}
0