#include <bits/stdc++.h> using namespace std; int main(){ int m,n,x,y; int x1,y1,x2,y2; int l,r; while(cin>>m>>n){ //bool f=false;//无错误 if(m<=9&&n<=9) cout<<0<<endl; else cout<<-1<<endl; ...