June 30, 2010

a003

#include <iostream>

using namespace std;

int
main()
{
int a, b;
string c[3] = {"普通", "吉", "大吉"};

while(cin >> a >> b)
cout << c[(a * 2 + b) % 3] << endl;


return 0;
}

0推薦此文章
Today's Visitors: 0 Total Visitors: 7
Personal Category: ╰Life* Topic: creation / music / composition
Previous in This Category: a002   Next in This Category: Happy Birthday To Me:-)(增
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0