結果

問題 No.1423 Triangle of Multiples
ユーザー yamakeyamake
提出日時 2021-03-12 21:55:47
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 555 bytes
コンパイル時間 1,875 ms
コンパイル使用メモリ 170,296 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-22 12:51:11
合計ジャッジ時間 2,719 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
#define debug(output) cout<<#output<<"= "<<output<<endl
using lint = long long;
typedef pair<int,int> P;
const lint linf=1e18+7;
const lint inf=1e9+7;
const int MOD=1000000007;
void solve(){
  int n=3;
  vector<lint> a(n);
  rep(i,n)cin>>a[i];
  sort(a.begin(),a.end());
  lint x=a[2];
  lint y=a[1];
  lint z=(x-y+a[0])/a[0]*a[0];
  cout<<x<<" "<<y<<" "<<z<<endl;
}
signed main(){
  int t;cin>>t;
  rep(i,t)solve();
  return 0;
}
0