
水题
「已注销」
欢迎关注微信公众号【我吃你家米了】,回复关键字【资料】获取各种学习资源
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HUD 1008 Elevator
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1008水题#include<stdio.h>int main() { int n; int a[100]; a[0] = 0; while(~scanf("%d", &n) && n) { for(int i = 1; i <= n; i++) {原创 2017-11-13 17:08:44 · 345 阅读 · 0 评论 -
HDU 4147 KFC -Z+W
水题:http://acm.hdu.edu.cn/showproblem.php?pid=4147#include<stdio.h>#include<string.h>int main() { int n, B, D, f, F; while(~scanf("%d%d%d%d%d", &n, &B, &D, &f...原创 2018-04-17 21:25:48 · 454 阅读 · 0 评论 -
HDU 4146 Filp Game
http://acm.hdu.edu.cn/showproblem.php?pid=4146 题目意思很简单,就是给你一个N*N的正方形,里面有N*N个格子,每个格子里面有一张纸片,这张纸片共有两面,White和Black,然后让你求出某一行或者某一列的纸片被翻转后,最终还有多少张纸片是白面朝上我们要是直接暴力遍历的话,肯定会超时的 1 <= N <= 1000, 0 <...原创 2018-04-16 22:56:54 · 413 阅读 · 0 评论 -
HDU 4541 模拟
第一开始打印10的100次方的时候弄成了1000个0.。。。。,害得我搞了半天#include#include#include#include #includeusing namespace std;#define swap(x, y) (x = (x)+(y), y = (x)-(y), x = (x)-(y))#define ll long longint a[10012原创 2018-03-14 16:57:44 · 420 阅读 · 0 评论 -
CSP认证训练题目——hdu6023-Automatic Judge
这是道水题,AC这道题目是很容易的,只要了解OJ的评判规则即可,这道题主要就是让你编写一段程序,可以计算出选手最终AC了几道题以及用了多少时间注意:这里的用了多少时间并不是说选手做完这些题用了多长时间,它是有具体的规则的,而且做错还会罚时,下面我就来说一下时间的计算规则首先,举例来说,现在有5道题: 1001, 1002, 1003, 1004,1005 对于每道题,提交后有多种可能,我原创 2018-02-19 16:06:17 · 664 阅读 · 0 评论 -
HDU 1017 A Mathematical Curiosity
传送门;http://acm.hdu.edu.cn/showproblem.php?pid=1017水题输出格式需要注意把换行调到前头如果多输出换行的话,会出现Presentation Error#include<stdio.h>int main() { int N; scanf("%d", &N); int tmp = N; while(N--) {原创 2017-11-14 10:41:52 · 303 阅读 · 0 评论 -
HDU 1014 Uniform Generator
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1014水题:直接暴力破解,把所有的算一遍,看看0~mod-1之间的数字是否全部出现过#include<stdio.h>#define maxn 100000int main() { int step, mod; while(~scanf("%d%d", &step, &mod)) {原创 2017-11-14 10:03:48 · 280 阅读 · 0 评论 -
HDU 1013 Digital Roots
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1013水题我的方法是当做字符串进行处理,算完和之后,再用一次sprintf,将int数值转换为字符串,在进行求和操作,直到满足条件。。。。。#include<stdio.h>#include<string.h>int main() { char s[10001]; memset(s, '原创 2017-11-13 18:21:14 · 320 阅读 · 0 评论 -
HDU 1012 u Calculate e
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1012水题,就有一点点逗人玩儿的意思,前三个可以直接输出,不用绞尽脑汁地去判断它小数点后有几位小数#include<stdio.h>int factorial(int n) { if(n == 0) return 1; return n* factorial(n - 1);原创 2017-11-13 17:41:45 · 304 阅读 · 0 评论 -
HDU 4143 A Simple Problem
水题:http://acm.hdu.edu.cn/showproblem.php?pid=4143#include<stdio.h>#include<math.h>int main() { int T; scanf("%d", &T); while(T--) { int n; scanf("%d"...原创 2018-04-13 19:35:05 · 400 阅读 · 3 评论