分别利用循环语句解题 摘要:解题思路:分别利用三种循环语句解决问题,并熟悉三种循环语句的执行规则。三种循环语句如下:1.while(表达式)语句2.do 语句 while(表达式);3.for(表达式1;表达式…… 题解列表 2023年10月21日 0 点赞 0 评论 615 浏览 评分:9.9
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define len sizeof(num)typedef struct s{ int …… 题解列表 2023年10月21日 0 点赞 0 评论 402 浏览 评分:0.0
弟弟的作业(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a[20]; int sum=0; whi…… 题解列表 2023年10月21日 0 点赞 0 评论 412 浏览 评分:0.0
判断第几天C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool IsLeapYear(int year)//用来判断是否是闰年{ if (y…… 题解列表 2023年10月21日 0 点赞 0 评论 386 浏览 评分:0.0
汽水瓶(题目要看全,还剩两个空瓶,可向老板借一瓶) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; while(~scanf("%d",&n)) { if(n=…… 题解列表 2023年10月21日 0 点赞 0 评论 328 浏览 评分:0.0
题解 2857: 加密的病历单 摘要:解题思路:注意事项:三次遍历得出结果;注意循环格式,以及是哪个字符串;切勿弄混!参考代码:#include using namespace std; char b[60]= {'w'…… 题解列表 2023年10月21日 0 点赞 0 评论 426 浏览 评分:9.9
2332: 信息学奥赛一本通T1181-整数奇偶排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10005];int main(){ for(int i=1; …… 题解列表 2023年10月21日 0 点赞 0 评论 417 浏览 评分:0.0
2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int flag[30]; int main() { str…… 题解列表 2023年10月21日 0 点赞 0 评论 489 浏览 评分:9.9
1720: 数据结构-基数排序 摘要:解题思路:注意事项:参考代码://sort排序#include <bits/stdc++.h>using namespace std;int a[100005];int main(){ int …… 题解列表 2023年10月21日 0 点赞 0 评论 407 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 318 浏览 评分:0.0