結果

問題 No.1423 Triangle of Multiples
ユーザー ygd.ygd.
提出日時 2021-03-12 21:32:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 221 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 77,436 KB
最終ジャッジ日時 2024-04-22 12:18:18
合計ジャッジ時間 1,621 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,096 KB
testcase_01 AC 39 ms
52,096 KB
testcase_02 AC 221 ms
77,252 KB
testcase_03 AC 220 ms
77,184 KB
testcase_04 AC 217 ms
77,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    A,B,C = map(int,input().split())
    Z = [[A,0],[B,1],[C,2]]
    Z.sort()
    MIN = Z[0][0]
    MAX = Z[2][0]
    D = ((MAX+MIN-1)//MIN)*MIN
    Z[0][0] = D
    ans = []
    Z.sort(key = lambda x: x[1])
    #print(Z)
    ans = (Z[0][0],Z[1][0],Z[2][0])
    print(*ans)
0