C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ char c[4]; int i; scanf("%s",c); for(i=0;i<4;i++) printf(…… 题解列表 2019年02月21日 1 点赞 0 评论 1080 浏览 评分:0.0
。。提点小问题。。:蓝桥杯算法提高VIP-字符串比较 (C语言代码) 摘要:解题思路:用strcmp字符串比较函数来比较。不能用gets输入,要用%s来输入。因为两个字符串之间是空格隔开的。#include<stdio.h> #include<string.h> int…… 题解列表 2019年02月21日 1 点赞 0 评论 925 浏览 评分:9.0
BREEZE------之这一篇没有小技巧(用的C) 摘要:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x<3) printf("%d",2*x); else if(x>=20) prin…… 题解列表 2019年02月21日 0 点赞 0 评论 1389 浏览 评分:9.9
蓝桥杯算法提高VIP-任意年月日历输出 (C语言代码) 摘要:#include<stdio.h>int pan(int n){ if(n%4==0&&n%100!=0||n%400==0)return 1; else return 0;}int run(int …… 题解列表 2019年02月21日 0 点赞 0 评论 1092 浏览 评分:0.0
BREEZE------之这一篇没有小技巧(用的C) 摘要:这题目是基础题了,用一个基本的for语句就可以了#include<stdio.h>int main(){ int a; scanf("%d",&a); for(int i=0;i<a;i++) pu…… 题解列表 2019年02月21日 0 点赞 0 评论 1147 浏览 评分:0.0
BREEZE------之这一篇没有小技巧(用的C) 摘要:又是一篇没有小技巧的啦QWQ#include<stdio.h>int main(){ int M=0,N=0; scanf("%d %d",&M,&N); if(N>M) for(int j=M+…… 题解列表 2019年02月22日 0 点赞 0 评论 1047 浏览 评分:0.0
。。挺简洁的。。:C语言训练-自守数问题 (C语言代码) 摘要:**注意要用long long保存平方。注意输出格式为每两个数中间有两个空格,末尾没空格。** ```c #include #include int main() { long long…… 题解列表 2019年02月22日 3 点赞 4 评论 1113 浏览 评分:8.6
剪格子 (C++代码)(注释详细) 摘要:解题思路: 深度搜索+回溯筛选注意事项:参考代码:#include<iostream> using namespace std; int map[11][11]; //数表 int vis[1…… 题解列表 2019年02月22日 2 点赞 6 评论 1217 浏览 评分:8.0
。。猜码。。:C语言训练-角谷猜想 (C语言代码) 摘要:#include<stdio.h> int main() { int n; scanf("%d",&n); for(;;) { if(n%2==0) { pr…… 题解列表 2019年02月22日 1 点赞 0 评论 1644 浏览 评分:0.0
【明明的随机数】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int x,y,a[100],j,z,h; sc…… 题解列表 2019年02月22日 0 点赞 0 评论 671 浏览 评分:0.0