結果
問題 |
No.1423 Triangle of Multiples
|
ユーザー |
![]() |
提出日時 | 2020-12-30 22:54:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 2,122 ms |
コンパイル使用メモリ | 191,488 KB |
最終ジャッジ日時 | 2025-01-17 08:39:46 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 RE * 2 |
ソースコード
// 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)++) void main2(){ ll a,b,c;cin >> a >> b >> c; c *= max({a,b,c}) / c; assert(a <= c && b <= c); a *= (c / a); b *= (c / b); cout << a << ' ' << b << ' ' << c << '\n'; } int main(){ cin.tie(0); ios::sync_with_stdio(false); //cout << fixed << setprecision(20); int tt;cin >> tt; while(tt--) main2(); return 0; }