結果
| 問題 |
No.1423 Triangle of Multiples
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-03-12 21:42:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 209 ms / 2,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 77,312 KB |
| 最終ジャッジ日時 | 2024-10-14 11:59:39 |
| 合計ジャッジ時間 | 1,925 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
import math
#最大公約数
def lcm(x, y):
return (x * y) // math.gcd(x, y)
T=int(input())
for i in range(T):
A,B,C = map(int, input().split())
lc = lcm(lcm(A,B),C)
print(lc,lc,lc)
H20