C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,s=0; int n; int a[10][10]; cin>>…… 题解列表 2023年06月06日 0 点赞 0 评论 226 浏览 评分:0.0
普通的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =10010;int a[N];…… 题解列表 2023年06月06日 0 点赞 0 评论 677 浏览 评分:0.0
枚举加分类 摘要:解题思路:结果只可能是4、6、8中的一个值。def func(x): sign=8 for a in (0,1): for b in (2,3): fo…… 题解列表 2023年06月06日 0 点赞 0 评论 630 浏览 评分:0.0
谁考了第K名 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc =…… 题解列表 2023年06月06日 0 点赞 0 评论 393 浏览 评分:0.0
奇数单增序列 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc = n…… 题解列表 2023年06月06日 0 点赞 0 评论 310 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 int …… 题解列表 2023年06月06日 0 点赞 0 评论 248 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, k,m,sum=0; scanf("%d %d", &n, &k); m = n…… 题解列表 2023年06月06日 0 点赞 0 评论 277 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[61],str1[61]; gets(str); str[…… 题解列表 2023年06月06日 0 点赞 0 评论 291 浏览 评分:0.0
模拟计算器(C语言) 摘要:#include<stdio.h> int main(){ int a,b; double sum; char c; scanf("%d%d",&a,&b); getc…… 题解列表 2023年06月06日 0 点赞 0 评论 219 浏览 评分:0.0
最简单的思路 摘要:#include<stdio.h> int main(){ char c; int sum = 0; while(scanf("%c",&c)){ …… 题解列表 2023年06月06日 0 点赞 0 评论 280 浏览 评分:0.0