結果

問題 No.1423 Triangle of Multiples
ユーザー ocvret_ocvret_
提出日時 2021-03-12 21:47:59
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 548 bytes
コンパイル時間 1,899 ms
コンパイル使用メモリ 163,136 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-22 12:39:05
合計ジャッジ時間 2,474 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 80 ms
6,944 KB
testcase_03 AC 70 ms
6,940 KB
testcase_04 AC 69 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
// #include<atcoder/all>
// #include<boost/multiprecision/cpp_int.hpp>

using namespace std;
// using namespace atcoder;
// using bint = boost::multiprecision::cpp_int;
using ll = long long;
using ull = unsigned long long;
using P = pair<int,int>;
#define rep(i,n) for(ll i = 0;i < (ll)n;i++)
#define ALL(x) (x).begin(),(x).end()
#define MOD 1000000007


int main(){
  
  int T;
  cin >> T;
  while(T--){
    ll a,b,c;
    cin >> a >> b >> c;
    cout << a*c << " " << b*c << " " << (a + b - 1)*c << "\n";
  }

  return 0;
}
0