摘要:
//把一个x进制的数转成一个十进制的数#include #include using namespace std;char a[100];int main(){ int T,x; cin>>T>>x; while(T--) { cin>>a; int n=0; for(int i=0;i... 阅读全文
posted @ 2015-07-25 14:51
心向晴
阅读(147)
评论(0)
推荐(0)
摘要:
DescriptionA magic island Geraldion, where Gerald lives, has its own currency system. It uses banknotes of several values. But the problem is, the sys... 阅读全文
posted @ 2015-07-25 14:39
心向晴
阅读(417)
评论(0)
推荐(0)
摘要:
某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数、一至三报数直到剩下的人... 阅读全文
posted @ 2015-07-25 14:01
心向晴
阅读(523)
评论(0)
推荐(0)
摘要:
Two bored soldiers are playing card war. Their card deck consists of exactlyncards, numbered from1ton,all values are different. They divide cards betw... 阅读全文
posted @ 2015-07-25 13:33
心向晴
阅读(182)
评论(0)
推荐(0)
浙公网安备 33010602011771号