結果

問題 No.632 穴埋め門松列
ユーザー pluto77
提出日時 2018-01-22 09:18:28
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 482 bytes
コンパイル時間 541 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-25 22:13:35
合計ジャッジ時間 1,072 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki632

s=map(str,raw_input().split())
if s[1]=='?':
 x=max(int(s[0]),int(s[2]))+1
 y=min(int(s[0]),int(s[2]))-1
 if y>0:
  print str(x)+str(y)
 else:
  print str(x)
elif s[0]=='?':
 if int(s[1])>int(s[2]):
  if int(s[1])-int(s[2])==1:
   print str(int(s[2])-1)
  else:
   print str(int(s[1])-1)
 else:
  print str(int(s[2])+1)
else:
 if int(s[1])>int(s[0]):
  if int(s[1])-int(s[0])==1:
   print str(int(s[0])-1)
  else:
   print str(int(s[1])-1)
 else:
  print str(int(s[0])+1)
0