結果

問題 No.1423 Triangle of Multiples
ユーザー e869120e869120
提出日時 2021-03-12 21:26:24
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 517 bytes
コンパイル時間 793 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-22 12:08:12
合計ジャッジ時間 1,694 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
using namespace std;

void solve(long long A, long long B, long long C) {
	long long VA = (1LL << 59) / A;
	long long VB = (1LL << 59) / B;
	long long VC = (1LL << 59) / C;
	cout << VA * A << " " << VB * B << " " << VC * C << endl;
}

int main() {
	long long T, A, B, C;
	cin >> T;
	for (int i = 1; i <= T; i++) {
		cin >> A >> B >> C;
		solve(A, B, C);
	}
	return 0;
}
0