結果

問題 No.91 赤、緑、青の石
ユーザー _matumo__matumo_
提出日時 2019-06-26 16:30:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,527 ms / 5,000 ms
コード長 205 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 7,920 KB
最終ジャッジ日時 2023-09-06 12:43:42
合計ジャッジ時間 26,181 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,587 ms
7,768 KB
testcase_01 AC 1,126 ms
7,852 KB
testcase_02 AC 713 ms
7,884 KB
testcase_03 AC 1,246 ms
7,812 KB
testcase_04 AC 585 ms
7,884 KB
testcase_05 AC 1,540 ms
7,812 KB
testcase_06 AC 437 ms
7,876 KB
testcase_07 AC 15 ms
7,772 KB
testcase_08 AC 15 ms
7,868 KB
testcase_09 AC 14 ms
7,772 KB
testcase_10 AC 15 ms
7,808 KB
testcase_11 AC 447 ms
7,768 KB
testcase_12 AC 1,322 ms
7,920 KB
testcase_13 AC 1,537 ms
7,812 KB
testcase_14 AC 1,034 ms
7,816 KB
testcase_15 AC 1,610 ms
7,780 KB
testcase_16 AC 15 ms
7,764 KB
testcase_17 AC 15 ms
7,904 KB
testcase_18 AC 16 ms
7,804 KB
testcase_19 AC 16 ms
7,880 KB
testcase_20 AC 15 ms
7,768 KB
testcase_21 AC 16 ms
7,800 KB
testcase_22 AC 15 ms
7,768 KB
testcase_23 AC 16 ms
7,812 KB
testcase_24 AC 15 ms
7,768 KB
testcase_25 AC 2,527 ms
7,828 KB
testcase_26 AC 2,313 ms
7,828 KB
testcase_27 AC 15 ms
7,808 KB
testcase_28 AC 228 ms
7,784 KB
testcase_29 AC 454 ms
7,896 KB
testcase_30 AC 1,670 ms
7,732 KB
testcase_31 AC 2,351 ms
7,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def xxx(A,B,C):
    if A<B: A,B=B,A
    if A<C: A,C=C,A
    if B<C: B,C=C,B
    return A,B,C

A,B,C=map(int,input().split())
while True:
    A,B,C=xxx(A,B,C)
    if A-C<3:   break
    A,C=A-2,C+1
print(C)
0