题解列表

筛选

感谢支持,谢谢你们的支持

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n,sum=0,a;    cin>>n; ……

只用循环和判断语句不用数组也能写?

摘要:解题思路:我的思路是先遍历灯,再遍历人在,其中用K去储存灯的状态,判断每一个灯在遍历一遍人后是否为关闭状态,是的话就输出。注意事项:参考代码:#include<iostream>using names……

Hello, World!的大小

摘要:解题思路:使用char定义字符串,直接使用sizeof()输出字符串的大小。注意事项:参考代码:#include<stdio.h>int main(){   char a[]="Hello, Worl……

1025-新手向代码

摘要:解题思路:考虑列表的排序注意事项:如何换行输出参考代码:a = list(map(int, input().split()))b = int(input())a.append(b)a.sort()pr……

判断第几天c++简单代码

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){    int y,m,d,a[12]={31,……

C++ 归并排序

摘要: #include #include using namespace std; int main() { int a; cin >> a;//输入整数个数 ……

甲流病人初筛(c++)

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;struct Patient {    string na……