折叠法解决问题 (C语言代码) 摘要:参考 学明 的代码,他的判定方法看不太懂解题思路:由于完全弹性碰撞,每次碰撞边界之后,小球只改变了速度方向,其他并没有改变。因此已知速度、入射角、时间之后,小球在X、Y轴上行走的总路程是确定的,且X、…… 题解列表 2019年01月15日 0 点赞 0 评论 947 浏览 评分:0.0
与2无关的数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define f(a) ((i/1000%10!=2&&i/100%10!=2&&i/10%10!=2&&i%10!=2)?(1):…… 题解列表 2019年01月15日 0 点赞 0 评论 529 浏览 评分:0.0
简单编码 (C语言代码) 摘要:解题思路:注意事项:本来我刚开是用gets(a)的;能输出正确结果但是提交不正确;然后改用scanf("%s",a);参考代码:#include<stdio.h>#include<string.h>i…… 题解列表 2019年01月15日 2 点赞 0 评论 1289 浏览 评分:2.0
求所给范围内水仙花数并排列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; int flag; while(~scanf("%d %d", &a,&b)){…… 题解列表 2019年01月15日 0 点赞 1 评论 690 浏览 评分:0.0
判断第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define f(a) (a%4==0&&a%100!=0||a%400==0)?(29):(28)int main(){ in…… 题解列表 2019年01月15日 0 点赞 0 评论 709 浏览 评分:0.0
成绩等级转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; while(~scanf("%d", &a)){ switch(a/10){ …… 题解列表 2019年01月15日 0 点赞 0 评论 634 浏览 评分:0.0
字符串中间和后边*号删除 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char s1[81]; char s2[81]; int flag = 0,index = 0;…… 题解列表 2019年01月15日 0 点赞 0 评论 871 浏览 评分:0.0
【亲和数】 (C语言代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while (n--) { …… 题解列表 2019年01月15日 0 点赞 0 评论 628 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码)最简单,最容易理解 摘要:解题思路:分成两部分,更容易理解,采用两个函数,更直观。注意事项:比较有技巧的是输出是的顺序,所以在循环时就改变了顺序。参考代码:#include<stdio.h>#include<math.h>in…… 题解列表 2019年01月15日 2 点赞 0 评论 857 浏览 评分:0.0
汪汪与打针 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a,b; int t = 0,m = 2,c = 1; …… 题解列表 2019年01月14日 0 点赞 0 评论 796 浏览 评分:0.0