Codeforces Round #159 (Div. 2) B. Playing Cubes

题目:http://codeforces.com/contest/257/problem/B

思路:找规律...

#include 
using namespace std;

int main()
{
    int n,m;
    int p,v;
    cin >> n >> m;
    if(n>m)
    {
        int t;
        t=n;
        n=m;
        m=t;
    }
    p=m-1;
    v=n;
    cout << p<<" "<<v;
    return 0;
}

 

转载于:https://www.cnblogs.com/danielqiu/archive/2013/01/17/2864452.html

你可能感兴趣的:(Codeforces Round #159 (Div. 2) B. Playing Cubes)