結果

問題 No.1656 Recuperation
ユーザー aut_jul_duraut_jul_dur
提出日時 2021-08-27 21:49:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 689 bytes
コンパイル時間 4,079 ms
コンパイル使用メモリ 226,720 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-13 08:37:32
合計ジャッジ時間 4,301 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
const long long MOD = 1000000007;
const long long INF = 9*1e18;
using ll = long long;
using mint = modint1000000007;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
long double PI = 3.14159265358979;
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  ll T;
  cin>>T;
  while(T--){
      ll A,B;
      cin>>A>>B;
      cout << A*B+B << endl;
  }
  return 0;
}
0