結果

問題 No.920 あかあお
ユーザー StarMatyanStarMatyan
提出日時 2020-12-25 20:43:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 471 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,992 KB
実行使用メモリ 10,180 KB
最終ジャッジ日時 2023-10-23 20:33:34
合計ジャッジ時間 1,204 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 28 ms
10,148 KB
testcase_05 AC 28 ms
10,148 KB
testcase_06 AC 29 ms
10,148 KB
testcase_07 AC 28 ms
10,148 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 29 ms
10,148 KB
testcase_11 WA -
testcase_12 AC 28 ms
10,148 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

first_d = input()
first_s = first_d.split(" ")

x_int = int(first_s[0])
y_int = int(first_s[1])
z_int = int(first_s[2])
mura_int = x_int - y_int
mura_count= 0

if mura_int > 0:
    mura_count= mura_count+y_int
elif mura_int < 0:
    mura_count= mura_count+x_int
    
if z_int > mura_int:
    mura_count=int(mura_count+(z_int+mura_int)/2)
elif z_int <mura_int:
    mura_count=mura_count+z_int
elif z_int==mura_int:
    mura_count=mura_count+mura_int
    
print(mura_count)
0