結果

問題 No.91 赤、緑、青の石
ユーザー ytftytft
提出日時 2022-11-10 09:06:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 765 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 87,348 KB
実行使用メモリ 76,852 KB
最終ジャッジ日時 2023-09-30 18:31:12
合計ジャッジ時間 11,125 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 547 ms
76,592 KB
testcase_01 AC 368 ms
76,476 KB
testcase_02 AC 358 ms
76,764 KB
testcase_03 AC 417 ms
76,636 KB
testcase_04 AC 251 ms
76,680 KB
testcase_05 AC 500 ms
76,720 KB
testcase_06 AC 237 ms
76,604 KB
testcase_07 AC 71 ms
71,164 KB
testcase_08 AC 71 ms
71,364 KB
testcase_09 AC 73 ms
71,660 KB
testcase_10 AC 72 ms
71,208 KB
testcase_11 AC 251 ms
76,668 KB
testcase_12 AC 508 ms
76,708 KB
testcase_13 AC 411 ms
76,604 KB
testcase_14 AC 409 ms
76,608 KB
testcase_15 AC 482 ms
76,760 KB
testcase_16 AC 72 ms
71,616 KB
testcase_17 AC 73 ms
71,356 KB
testcase_18 AC 72 ms
71,656 KB
testcase_19 AC 72 ms
71,380 KB
testcase_20 AC 72 ms
71,244 KB
testcase_21 AC 72 ms
71,064 KB
testcase_22 AC 70 ms
71,224 KB
testcase_23 AC 71 ms
71,220 KB
testcase_24 AC 71 ms
71,240 KB
testcase_25 AC 575 ms
76,852 KB
testcase_26 AC 606 ms
76,644 KB
testcase_27 AC 73 ms
71,396 KB
testcase_28 AC 158 ms
76,644 KB
testcase_29 AC 259 ms
76,596 KB
testcase_30 AC 765 ms
76,796 KB
testcase_31 AC 653 ms
76,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math
input=lambda:sys.stdin.readline().rstrip()
def check(i,A):
	cur=0
	for j in A:
		cur+=(j-i)//(1+(j>i))
	return cur<0
A=list(map(int,input().split()))
i=max(A)
while check(i,A):
	i-=1
print(i)
0