結果

問題 No.1423 Triangle of Multiples
ユーザー ytftytft
提出日時 2022-03-22 03:24:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 77,696 KB
最終ジャッジ日時 2024-04-18 00:28:25
合計ジャッジ時間 1,383 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
def solve():
	A=list(map(int,input().split()))
	A[A.index(min(A))]*=(sum(A)-1)//min(A)-1
	print(*A)
T=int(input())
for i in range(T):
	solve()
0