题解列表

筛选

题解 2784: 收集瓶盖赢大奖

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    cin>>a>>b;    if(a>=……

题解 3009: 判断闰年

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

题解 3006: 适合晨练

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){     int t;    cin>>t;   if(25<=t  ……

题解 2781: 奇偶ASCII值判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    char c;    cin>>c;    if(in……

题解 2779: 输出绝对值

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

矩阵转置

摘要:解题思路:注意事项:参考代码:n,m=map(int,input().strip().split())myList=[list(map(int,input().strip().split())) fo……

2861: 验证子串

摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; int main() {     string str ;   ……

题解 1764: 循环入门练习1

摘要:解题思路:利用高斯的求数方法,没想到对了。注意事项:直接输出结果就行参考代码:#include <bits/stdc++.h>using namespace std;int main(){    co……

完数的判断

摘要:#include<stdio.h>int main(){    int i,j,N;    int l;    int m;    int a[100];    int sum=0;    scanf……

二级C语言-同因查找(c语言版)

摘要:解题思路:求出10至1000之内能同时被2、3、7整除的数,并输出。用for循环让i从10到1000进行遍历,用if语句找到符合条件的数字,再用printf进行输出。注意事项:1:i要小于等于1000……