結果

問題 No.91 赤、緑、青の石
ユーザー Konton7Konton7
提出日時 2019-05-23 00:30:59
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 436 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,716 KB
実行使用メモリ 10,072 KB
最終ジャッジ日時 2023-10-17 11:24:30
合計ジャッジ時間 2,576 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,072 KB
testcase_01 AC 31 ms
10,072 KB
testcase_02 AC 29 ms
10,072 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 29 ms
10,072 KB
testcase_08 AC 28 ms
10,072 KB
testcase_09 WA -
testcase_10 AC 29 ms
10,072 KB
testcase_11 AC 29 ms
10,072 KB
testcase_12 AC 29 ms
10,072 KB
testcase_13 AC 33 ms
10,072 KB
testcase_14 AC 29 ms
10,072 KB
testcase_15 AC 29 ms
10,072 KB
testcase_16 AC 28 ms
10,072 KB
testcase_17 AC 28 ms
10,072 KB
testcase_18 AC 29 ms
10,072 KB
testcase_19 AC 28 ms
10,072 KB
testcase_20 AC 28 ms
10,072 KB
testcase_21 AC 28 ms
10,072 KB
testcase_22 AC 28 ms
10,072 KB
testcase_23 AC 28 ms
10,072 KB
testcase_24 AC 29 ms
10,072 KB
testcase_25 AC 28 ms
10,072 KB
testcase_26 WA -
testcase_27 AC 29 ms
10,072 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 28 ms
10,072 KB
testcase_31 AC 28 ms
10,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

stones = sorted([ int(v) for v in input().split() ])

def exchange(inlist):
    first_product, second_product, third_product = 0, 0, 0
    a, b, c = inlist
    first_product = a
    a, b, c = 0, b-a, c-a

    if c <= b *3:
        second_product = ( b + c ) // 4
    else:
        second_product = b
        c = c - 2*b

        third_product = c // 5

    print(first_product+second_product+third_product)
    return

exchange(stones)
0