开关灯(利用反逻辑符'!'的常规方法) 摘要:解题思路:灯的状态可用1和0表示,这里用的是1开0关。注意事项:数组的下标是从0开始的,而我们的灯是从1开始,所以需要注意下标的关系参考代码:#include<stdio.h> int main()…… 题解列表 2024年11月13日 4 点赞 0 评论 723 浏览 评分:10.0
ISBN码(常规方法) 摘要:解题思路:注意事项:注意输入情况还有个最后一位是X的情况,没考虑到只有82分参考代码:变量设的有点多,可能有些难看懂#include<stdio.h> #include<string.h> int…… 题解列表 2024年11月13日 0 点赞 0 评论 555 浏览 评分:0.0
2870: 单词翻转(不能用gets) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[400]; int j,i=0,f=0; fg…… 题解列表 2024年11月13日 1 点赞 0 评论 482 浏览 评分:0.0
奇数单曾序列,用一个数组解决 摘要:解题思路:使用的是选择排序注意事项:在打印逗号时,利用状态标记,符合奇数,改变状态,打印逗号参考代码:#include<stdio.h>#include<string.h>int main(){ …… 题解列表 2024年11月12日 0 点赞 0 评论 683 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); …… 题解列表 2024年11月12日 0 点赞 0 评论 615 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:把形成三角形的必要条件补充完整参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&…… 题解列表 2024年11月12日 0 点赞 0 评论 509 浏览 评分:0.0
二级C语言-等差数列-题解(C语言代码) 摘要:解题思路:开头设置sum为-1;取巧注意事项:i<n参考代码:int main(){ int i, n,m=0; int sum = -1; scanf("%d", &n); for (i = 0; …… 题解列表 2024年11月12日 0 点赞 0 评论 485 浏览 评分:0.0
用c语言解决字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { char ch;int j,z,k,s; j=z=k=s=0; while((ch=getc…… 题解列表 2024年11月12日 1 点赞 0 评论 789 浏览 评分:0.0
屎盆子镶金边教程!!!!! 摘要:#include <stdio.h>#include <string.h>int main() { char part1[] = "Hello "; // 前一段字母,注意这里有个空格 …… 题解列表 2024年11月12日 0 点赞 1 评论 376 浏览 评分:9.9
试了下另一个选项 摘要:解题思路:题目也说了,但好奇试了下,输出no,不行。注意事项:参考代码:#include<studio.h>int main(){ printf("yes"); return…… 题解列表 2024年11月12日 0 点赞 0 评论 407 浏览 评分:9.9