結果
| 問題 |
No.1423 Triangle of Multiples
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-09-04 23:50:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 718 bytes |
| コンパイル時間 | 1,632 ms |
| コンパイル使用メモリ | 194,072 KB |
| 最終ジャッジ日時 | 2025-02-16 18:37:13 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 4 |
ソースコード
#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;
}
}
kpinkcat