結果
問題 | No.1423 Triangle of Multiples |
ユーザー | O2MT |
提出日時 | 2021-06-08 01:28:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 329 ms / 2,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 548 ms |
コンパイル使用メモリ | 87,124 KB |
実行使用メモリ | 80,584 KB |
最終ジャッジ日時 | 2023-08-16 18:06:24 |
合計ジャッジ時間 | 2,479 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,184 KB |
testcase_01 | AC | 71 ms
71,160 KB |
testcase_02 | AC | 329 ms
80,584 KB |
testcase_03 | AC | 219 ms
78,272 KB |
testcase_04 | AC | 218 ms
78,024 KB |
ソースコード
def gcd(x, y): if y == 0: return x else: return gcd(y,x%y) def lcm(x, y): return (x * y) // gcd(x, y) T = int(input()) for _ in range(T): a,b,c = map(int,input().split()) num = lcm(lcm(a,b),c) print(num,num,num)