結果
問題 | No.1423 Triangle of Multiples |
ユーザー | lynmisakura |
提出日時 | 2021-01-01 15:57:09 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 567 bytes |
コンパイル時間 | 2,296 ms |
コンパイル使用メモリ | 193,296 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-21 18:53:24 |
合計ジャッジ時間 | 2,404 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 15 ms
5,376 KB |
testcase_04 | AC | 13 ms
5,376 KB |
ソースコード
// solution for yukicoder_5395 // author : lynmisakura #include<bits/stdc++.h> using namespace std; using ll = long long; #define REP(i,N) for(int (i) = 0;(i) < (N);(i)++) ll ceil(ll a,ll b){ return (a + b - 1) / b; } void main2(){ ll a,b,c;cin >> a >> b >> c; c *= ceil(max({a,b,c}),c); assert(a <= c && b <= c); a *= (c / a); b *= (c / b); cout << b << ' ' << c << ' ' << a << '\n'; } int main(){ cin.tie(0); ios::sync_with_stdio(false); //cout << fixed << setprecision(20); int tt;cin >> tt; while(tt--) main2(); return 0; }