結果
| 問題 |
No.1423 Triangle of Multiples
|
| コンテスト | |
| ユーザー |
HAGI_TARO
|
| 提出日時 | 2021-09-16 12:53:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 170 ms / 2,000 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 82,364 KB |
| 実行使用メモリ | 76,800 KB |
| 最終ジャッジ日時 | 2024-06-29 14:22:38 |
| 合計ジャッジ時間 | 1,603 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
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)
HAGI_TARO