結果

問題 No.333 門松列を数え上げ
ユーザー
提出日時 2016-01-15 22:40:47
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 594 ms
コンパイル使用メモリ 7,128 KB
実行使用メモリ 6,448 KB
最終ジャッジ日時 2023-10-19 23:24:03
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

abc,de = map(int,raw_input().split(" "))
if abc<de:
  if de==2000000000:
    print "0"
  else:
    print "1"
elif de==2000000000:
  print "0"
elif de==1999999999 and abc==2000000000:
  print "0"
else:
  print 2000000000 - de - 1
0