結果
問題 | No.91 赤、緑、青の石 |
ユーザー |
![]() |
提出日時 | 2016-09-01 23:14:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-24 07:00:07 |
合計ジャッジ時間 | 2,151 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 28 |
ソースコード
R,G,B = [int(i) for i in input().strip().split(" ")] def check(n): left = 0 shrt = 0 for i in (R,G,B): if i >= n: left += (i-n)//2 else: shrt += n-i return left >= shrt total = 0 for i in range(24,-1,-1): if check(total+pow(2,i)): total += pow(2,i) print(total)