結果

問題 No.1423 Triangle of Multiples
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-16 12:53:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 220 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 78,756 KB
最終ジャッジ日時 2023-09-12 01:18:00
合計ジャッジ時間 2,748 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,512 KB
testcase_01 AC 69 ms
71,044 KB
testcase_02 AC 220 ms
78,728 KB
testcase_03 AC 177 ms
78,756 KB
testcase_04 AC 175 ms
78,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n = int(input())
for i in range(n):
    a,b,c = map(int,input().split())
    ans = str((a * b // math.gcd(a, b)) * c // math.gcd((a * b // math.gcd(a, b)), c))
    print(ans + " " + ans + " " + ans)
0