結果

問題 No.91 赤、緑、青の石
ユーザー ytftytft
提出日時 2022-11-10 09:04:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 1,058 ms
コンパイル使用メモリ 86,680 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2023-09-30 18:28:44
合計ジャッジ時間 7,499 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 233 ms
76,304 KB
testcase_01 AC 189 ms
76,544 KB
testcase_02 AC 165 ms
76,412 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 139 ms
76,544 KB
testcase_07 AC 78 ms
71,100 KB
testcase_08 AC 77 ms
71,124 KB
testcase_09 WA -
testcase_10 AC 75 ms
71,020 KB
testcase_11 AC 144 ms
76,508 KB
testcase_12 AC 232 ms
76,336 KB
testcase_13 AC 194 ms
76,496 KB
testcase_14 AC 195 ms
76,360 KB
testcase_15 AC 220 ms
76,304 KB
testcase_16 AC 76 ms
71,376 KB
testcase_17 AC 76 ms
71,104 KB
testcase_18 AC 79 ms
71,116 KB
testcase_19 AC 77 ms
71,016 KB
testcase_20 AC 78 ms
71,180 KB
testcase_21 AC 78 ms
71,144 KB
testcase_22 AC 77 ms
71,000 KB
testcase_23 AC 76 ms
71,432 KB
testcase_24 AC 76 ms
71,428 KB
testcase_25 AC 266 ms
76,504 KB
testcase_26 WA -
testcase_27 AC 78 ms
71,456 KB
testcase_28 AC 111 ms
76,496 KB
testcase_29 AC 140 ms
76,328 KB
testcase_30 AC 341 ms
76,504 KB
testcase_31 AC 270 ms
76,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math
input=lambda:sys.stdin.readline().rstrip()
A=list(map(int,input().split()))
for i in range(max(A),-1,-1):
	cur=0
	for j in A:
		cur+=(j-i)*(1+(j<i))
	if cur>=0:
		print(i)
		sys.exit()
0