摘要: Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the di... 阅读全文
posted @ 2015-08-05 20:26 martinue 阅读(121) 评论(0) 推荐(0)
摘要: Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的... 阅读全文
posted @ 2015-08-05 20:23 martinue 阅读(141) 评论(0) 推荐(0)
摘要: Description Given A,B,C, You should quickly calculate the result of A^B mod C. (1#includeusing namespace std;typedef __int64 ll;ll quick(ll a,l... 阅读全文
posted @ 2015-08-05 20:17 martinue 阅读(145) 评论(0) 推荐(0)
摘要: Description Xiaoming has just come up with a new way for encryption, by calculating the key from a publicly viewable number in the following way... 阅读全文
posted @ 2015-08-05 20:12 martinue 阅读(147) 评论(0) 推荐(0)
摘要: Every year there is the same problem at Halloween: Each neighbour is only willing to give a certaintotal number of sweets on that day, no matter how... 阅读全文
posted @ 2015-08-05 20:06 martinue 阅读(123) 评论(0) 推荐(0)
摘要: Description 可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能... 阅读全文
posted @ 2015-08-05 19:55 martinue 阅读(268) 评论(0) 推荐(0)
摘要: Description After a day trip with his friend Dick, Harry noticed a strange pattern of tiny holes in the door of his SUV. The local American Tir... 阅读全文
posted @ 2015-08-04 11:36 martinue 阅读(117) 评论(0) 推荐(0)
摘要: Description Diophantus of Alexandria was an egypt mathematician living in Alexandria. He was one of the first mathematicians to study equations ... 阅读全文
posted @ 2015-08-02 10:18 martinue 阅读(216) 评论(0) 推荐(0)
摘要: Description 假设x是一个正整数,它的值不超过65535(即1#includeusing namespace std;bool p[65545];int su[65545],k=0,num[65545],yz[65545];void get(){ memset(p,1,s... 阅读全文
posted @ 2015-08-02 10:13 martinue 阅读(171) 评论(0) 推荐(0)
摘要: The Sports Association of Bangladesh is in great problem with their latest lottery ‘Jodi laiga Jai’. There are so many participants this time that t... 阅读全文
posted @ 2015-08-02 10:09 martinue 阅读(331) 评论(0) 推荐(0)