AtCoder Beginner Contest 096題解(5月5日)

A - Day of Takahashi #include <bits/stdc++.h> using namespace std; int main() { int a,b; while(cin>>a>>b) { int ans=a-1; if(a<=b) ans++; cout<<ans<<endl; }
相關文章
相關標籤/搜索