結果

問題 No.1423 Triangle of Multiples
ユーザー glretoglreto
提出日時 2021-03-27 20:17:39
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 1,008 bytes
コンパイル時間 843 ms
コンパイル使用メモリ 98,952 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-06 22:03:28
合計ジャッジ時間 1,483 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include<iomanip>
#include<functional>
#include<algorithm>
#include<deque>
#include<math.h>
#include<set>
#include<cstdio>
#include<string>
#include<queue>
#include<complex>
#include<numeric>
#include<stack>
#include<unordered_map>
#include<map>
#include <cassert>
using namespace std;
#define rep(i,n) for(ll i = 0;i<n;i++)
#define req(i,n) for(ll i = 1;i<=n;i++)
#define rrep(i,n) for(int i = n-1;i>=0;i--)
#define ALL(a) a.begin(),a.end()
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
typedef long long ll;
typedef long double ld;
ll gcd(ll a, ll b) {
    return b ? gcd(b, a % b) : a;
}ll lcm(ll a, ll b) {
    return a * b / gcd(a, b);
}
int main() {
    int t; cin >> t;
    rep(_, t) {
        ll a, b, c; cin >> a >> b >> c;
        ll ans = a*b*c;
        rep(i, 2) cout << ans << " ";
        cout <<ans << endl;
    }
}
0