結果

問題 No.1423 Triangle of Multiples
ユーザー 👑 rin204rin204
提出日時 2021-08-23 05:42:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 183 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 77,056 KB
最終ジャッジ日時 2024-04-24 20:35:48
合計ジャッジ時間 2,013 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,456 KB
testcase_01 AC 42 ms
51,840 KB
testcase_02 AC 183 ms
76,672 KB
testcase_03 AC 181 ms
76,800 KB
testcase_04 AC 179 ms
77,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = 10 ** 9

def solve():
    a, b, c = map(int, input().split())
    x = n // a * a
    y = n // b * b
    z = n // c * c
    print(x, y, z)
    
for _ in range(int(input())):
    solve()
    
0