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

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

思路:找规律...

#include <iostream>
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;
}

 

posted @ 2013-01-17 14:47  Daniel Qiu  阅读(203)  评论(0编辑  收藏  举报