Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5864 Accepted Submission(s): 3122 Problem Description N个气球排成一排,从
题目链接:hdu 1556 Color the ball 题目大意:略。 解题思路:用个数组维护即可。 #include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int maxn = 100000;int N, c[maxn + 5];int main () {while (sc
Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 19721 Accepted Submission(s): 9815 Problem Description N个气球排成一排,从左到右依次编号为1,2,3…
http://acm.split.hdu.edu.cn/showproblem.php?pid=1556 Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 17173 Accep
Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9769 Accepted Submission(s): 5028 Problem Description