結果

問題 No.1423 Triangle of Multiples
ユーザー ryuusagiryuusagi
提出日時 2021-03-12 21:49:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 77,184 KB
最終ジャッジ日時 2024-04-22 12:43:22
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

for _ in range(int(input())):
    a,b,c=map(int,input().split())
    if b<=a>=c:
        print(a,a//b*b,a//c*c)
    elif a<=b>=c:
        print(b//a*a,b,b//c*c)
    else:
        print(c//a*a,c//b*b,c)
0