Codeforces Round #596 ABC題解

A 題 思路:只要判斷三種狀況,a等於b或者a+1等於b或者a等於9且b等於1時,不然輸出-1;ios include<bits/stdc++.h> using namespace std; typedef long long ll; const int mx=10; int main() { int n,m; cin>>n>>m; if(n==m)
相關文章
相關標籤/搜索