摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2053一开始做这道题的时候还是想用了用三原色的那种方法来做了一下,果然,超时了,看如下代码:#include #include #include using namespace std;int Kesha[100005];int main() { int n; while(~scanf("%d", &n)) { memset(Kesha, 0, sizeof(Kesha)); for(int i=1; i#include #include #include usi... 阅读全文
posted @ 2013-12-20 20:41
Kesha小朋友
阅读(351)
评论(0)
推荐(0)
摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1003解题代码如下: 1 #include 2 #include 3 using namespace std; 4 5 int Kesha[100005]; 6 7 int main() { 8 int t, k = 0; 9 scanf("%d", &t);10 11 while(t--) {12 k++;13 int n, p = 0;14 scanf("%d", &n);15 for(int i... 阅读全文
posted @ 2013-12-20 19:39
Kesha小朋友
阅读(155)
评论(0)
推荐(0)
浙公网安备 33010602011771号