結果

問題 No.91 赤、緑、青の石
ユーザー pluto77pluto77
提出日時 2016-03-09 10:42:15
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 1,499 ms
コンパイル使用メモリ 77,648 KB
実行使用メモリ 78,700 KB
最終ジャッジ日時 2023-09-06 12:19:24
合計ジャッジ時間 5,311 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
78,700 KB
testcase_01 AC 88 ms
78,292 KB
testcase_02 AC 83 ms
78,360 KB
testcase_03 AC 86 ms
77,456 KB
testcase_04 AC 79 ms
77,248 KB
testcase_05 AC 86 ms
77,252 KB
testcase_06 AC 73 ms
77,632 KB
testcase_07 AC 71 ms
76,484 KB
testcase_08 AC 73 ms
76,524 KB
testcase_09 AC 72 ms
76,596 KB
testcase_10 AC 71 ms
76,464 KB
testcase_11 AC 80 ms
78,228 KB
testcase_12 AC 89 ms
78,300 KB
testcase_13 AC 94 ms
78,336 KB
testcase_14 AC 85 ms
78,268 KB
testcase_15 AC 93 ms
78,480 KB
testcase_16 AC 72 ms
76,348 KB
testcase_17 AC 70 ms
76,400 KB
testcase_18 AC 69 ms
76,196 KB
testcase_19 AC 70 ms
76,588 KB
testcase_20 AC 70 ms
76,424 KB
testcase_21 AC 71 ms
76,248 KB
testcase_22 AC 70 ms
76,456 KB
testcase_23 AC 69 ms
76,212 KB
testcase_24 AC 71 ms
76,492 KB
testcase_25 AC 93 ms
77,376 KB
testcase_26 AC 94 ms
77,332 KB
testcase_27 AC 70 ms
76,456 KB
testcase_28 AC 71 ms
76,364 KB
testcase_29 AC 73 ms
77,324 KB
testcase_30 AC 84 ms
77,372 KB
testcase_31 AC 90 ms
77,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_91

a=map(int,raw_input().split())
a.sort()
x,y,z=a
res=x
y=y-x
z=z-x

x=y
y=z
while x>=1 and y>=3:
 res+=1
 x-=1
 y-=3
 if y<x:
  x,y=y,x
res=res+y/5
print res
0