题解列表

筛选

编写题解 3001: 整数的和

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

题解 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……

题解 2784: 收集瓶盖赢大奖

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

分解质因数

摘要:解题思路:    1.找出在(<b)的素数,素数会是因子    2.第一个for循环中循环需要分解的每一个因数    3.第二个for循环找到被分解的因数其每一个因子,不断往下循环找完为止参考代码:a……

矩阵加法

摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split())myList1=[list(map(int,input().split())) for t in range(m)……

c语言for简单循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[5];    int i;    for (i = 0;i<5;i++)    {     ……

矩阵转置

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

图像旋转

摘要:解题思路: 和求转置差不多,添加列元素时,逆序一下注意事项:参考代码:n,m=map(int,input().strip().split())myList=[list(map(int,input().……