navigation switch
Home
Contests
Notification
Clarification
Problems
Ranklist
Status
HackStatus
Problem 1002
如何减小内存和时间?
usefortmp
| 2015-05-21 16:10:53
Author
#include<iostream> using namespace std; int main() { int n,m; while (cin>>n>>m) { if(m <= n) cout<<--m<<endl; else { m = m%n; if (m==0) cout<<--n<<endl; else cout<<--m<<endl; } } return 0; } 感觉已经够精简了
Title
Content