![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟题&&作业
ltx_zero
萌新,请多指教,欢迎讨论嗷~
展开
-
作业系列静态链表
#include<stdio.h> struct student { int num; float score; struct student *next; }a,b,c; int main() { struct student *p,*head; a.num=10101;b.num=10103;c.num=10107; a.score=89.5;b.原创 2017-12-18 23:42:32 · 156 阅读 · 0 评论 -
2018全国多校1-F题
稍微有点坑的地方在于。。最后一秒钟要是血不够扣,只要不是0仍然能够进去 还有一点就是如果正好扣到0的时候再补血也是死人的,如果你正好跑在最后一秒没血了也是死 但是如果你最后一秒血量为2,然后一秒扣6滴。这时候你是能够跑到安全区 https://www.nowcoder.com/acm/contest/67/F #include int main() { int a,b,c,n,t,原创 2018-01-22 14:15:25 · 228 阅读 · 0 评论 -
2018全国多校1-I题
唯一的一道题一次过QAQ ٩(๑>◡ https://www.nowcoder.com/acm/contest/67/I #include #include int pd[1005]; int a,b,a1,b1,ans; bool fuhe(int x) { if(x%a==0||x%b==0) return false; while(x!=0) {原创 2018-01-22 14:11:54 · 224 阅读 · 0 评论 -
2018全国多校1-B题
做题的时候千万不要因为为了过样例把某个数特判了。。。 一定要按着正确的思路去做题QAQ 还有就是,做题的时候面多0相关的位置一定要慎重慎重。。 #include #include int a[1005],b[1005],c[1005]; int cout=0,lss; long long shanghai; void zhixing(int lss,int cout) {原创 2018-01-22 14:07:55 · 250 阅读 · 0 评论 -
2018全国多校1-H题
首先就是题里数据都在int不代表ans也在int范围 其次就是emmm。。。这个是斐波那契,用搜索铁定tle #include int main() { long long f[100]; int t,a; f[0]=1; f[1]=1; f[2]=2; f[3]=3; scanf("%d",&t); while(t--){原创 2018-01-22 14:05:28 · 363 阅读 · 0 评论 -
2018全国多校1-A题
题本身没有任何难度QAQ但是。。。多组数据一定要换行!!! 一定要换行!!!!!!ans #include #include int p[1005][1005]; double ans[1005]; int a; double b,max; double pd[1005]; int main() { int n,m; while(scanf("%d%d",&n,&m)!=EOF原创 2018-01-22 14:03:22 · 187 阅读 · 0 评论 -
2018全国多校1-G题
题目如下 https://www.nowcoder.com/acm/contest/67/G 这个题开50005000的数组的时候一定要用char 无论是int还是short int 都是会炸的 简单的递归,注意下刚开始输出的时候横纵坐标输出反了 还有就是emmm递归里面的x的坐标下次做题不能用前两个例子写公式 #include #include char p[5000][5000原创 2018-01-22 14:00:47 · 275 阅读 · 0 评论 -
作业系列静态链表
#include struct student { int num; float score; struct student *next; }a,b,c; int main() { struct student *p,*head; a.num=10101;b.num=10103;c.num=10107; a.score=89.5原创 2017-12-18 22:55:07 · 156 阅读 · 0 评论 -
作业简单的动态链表
作业系列原创 2017-12-18 23:36:24 · 153 阅读 · 0 评论 -
2018全国多校1-C题
把所有情况都列出来QAQ估计是最笨的方法了 但是做对了还是很开心的hhhh 题目如下 https://www.nowcoder.com/acm/contest/67/C #includestdio.h> #includestring.h> int map[10][10]; int col[10][10]; int x,y; void chushihua(){ memset(map,原创 2018-01-22 19:43:57 · 200 阅读 · 0 评论