2013年12月22日

hdoj1004解题报告

摘要: 题意:输入各种颜色的气球,输出气球数量最多的气球的颜色#include #include using namespace std;int main(){ int n; char ball[1001][40]; while (true) { cin >> n; ... 阅读全文

posted @ 2013-12-22 13:17 冰迹风痕 阅读(98) 评论(0) 推荐(0)

hdoj1000解题报告

摘要: 题意:计算A+B#include int main(){ int a, b; while (scanf("%d%d", &a, &b) != EOF) { printf("%d\n", a + b); }} 阅读全文

posted @ 2013-12-22 13:13 冰迹风痕 阅读(132) 评论(0) 推荐(0)

hdoj1001解题报告

摘要: 第一次写解题报告,找了个最简单的.题意:输入一个数n,输出从1+2+3+...+n.没什么好说的#include int main(){ int n; while (scanf("%d", &n) != EOF) { int sum = 0; for (... 阅读全文

posted @ 2013-12-22 13:08 冰迹风痕 阅读(218) 评论(0) 推荐(0)

导航