結果

問題 No.1423 Triangle of Multiples
ユーザー kpinkcatkpinkcat
提出日時 2023-09-04 23:50:04
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 718 bytes
コンパイル時間 2,049 ms
コンパイル使用メモリ 198,348 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-04 23:50:07
合計ジャッジ時間 2,805 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
#include<string>
using namespace std;


int main()
{
    int t;
    cin >> t;
    bool tang = false;
    for (int i = 0; i < t; i++){
        int a, b, c, d, e, f;
        cin >> a >> b >> c;
        d = min({a, b, c});
        f = max({a, b, c});
        if (d == a && f == b) e = c;
        else if (d == a && f == c) e = b;
        else if (d == b && f == a) e = c;
        else if (d == b && f == c) e = a;
        else if (d == c && f == a) e = b;
        else e = a;
        d = f - f%d;
        cout << d << " " << e << " " << f << endl;
    }
}
0