結果

問題 No.1656 Recuperation
ユーザー aut_jul_duraut_jul_dur
提出日時 2021-08-27 21:49:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 689 bytes
コンパイル時間 4,143 ms
コンパイル使用メモリ 230,256 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 01:37:36
合計ジャッジ時間 4,725 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

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