简单的a+b (C语言代码)(对~字符的一些解释) 摘要:解题思路: 难点也就在于多次输入,也就是写个循环,还有循环终止的条件 ```c #include int main() { int a,b; while(~scanf("…… 题解列表 2023年07月08日 1 点赞 0 评论 433 浏览 评分:10.0
只用循环和判断语句不用数组也能写? 摘要:解题思路:我的思路是先遍历灯,再遍历人在,其中用K去储存灯的状态,判断每一个灯在遍历一遍人后是否为关闭状态,是的话就输出。注意事项:参考代码:#include<iostream>using names…… 题解列表 2023年07月09日 0 点赞 0 评论 436 浏览 评分:10.0
程序员爬楼梯(C++dp简单解题) 摘要: 记得五星好评哦 ```cpp #include #include using namespace std; int cli…… 题解列表 2023年07月20日 1 点赞 0 评论 566 浏览 评分:10.0
3020: 最大数位置(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年07月21日 1 点赞 2 评论 891 浏览 评分:10.0
Hello, World!的大小 摘要:解题思路:使用char定义字符串,直接使用sizeof()输出字符串的大小。注意事项:参考代码:#include<stdio.h>int main(){ char a[]="Hello, Worl…… 题解列表 2023年07月22日 2 点赞 0 评论 1265 浏览 评分:10.0
1025-新手向代码 摘要:解题思路:考虑列表的排序注意事项:如何换行输出参考代码:a = list(map(int, input().split()))b = int(input())a.append(b)a.sort()pr…… 题解列表 2023年07月24日 2 点赞 0 评论 688 浏览 评分:10.0
编写题解 2760: 整型与布尔型的转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int main(){ int a; scanf("%d",&a); bool …… 题解列表 2023年07月25日 1 点赞 0 评论 942 浏览 评分:10.0
判断第几天c++简单代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int y,m,d,a[12]={31,…… 题解列表 2023年08月05日 0 点赞 0 评论 457 浏览 评分:10.0
类似删除法求质数(C语言代码) 摘要: 本来是想讲一下思路,但是发现解释的无比乱,干脆直接上图,代码如下:void prime(int); int main() { int a, b; scanf("%d%d", …… 题解列表 2023年08月29日 1 点赞 0 评论 390 浏览 评分:10.0
C++ 归并排序 摘要: #include #include using namespace std; int main() { int a; cin >> a;//输入整数个数 …… 题解列表 2023年09月13日 0 点赞 0 评论 615 浏览 评分:10.0