結果

問題 No.1057 素敵な日
ユーザー H IH I
提出日時 2020-05-24 09:19:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,284 KB
実行使用メモリ 53,452 KB
最終ジャッジ日時 2024-04-19 06:05:01
合計ジャッジ時間 1,242 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,452 KB
testcase_01 AC 38 ms
51,820 KB
testcase_02 AC 37 ms
53,032 KB
testcase_03 AC 37 ms
52,444 KB
testcase_04 AC 38 ms
52,052 KB
testcase_05 AC 37 ms
52,200 KB
testcase_06 AC 36 ms
53,384 KB
testcase_07 AC 42 ms
51,808 KB
testcase_08 AC 37 ms
52,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
s = a + b

if(a == b):
  print(s-1)
elif(a>b):
  print(s-(a-b))
else:
  print(s-(b-a))
0