2973——————出现次数超过一半的数 摘要: n = int(input()) m = input().split() if n == len(m): d = {…… 题解列表 2022年09月24日 0 点赞 0 评论 598 浏览 评分:9.9
[编程入门]二维数组的转置,简单粗暴!!! 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int a[9],b[9], i; for (i …… 题解列表 2022年09月25日 0 点赞 0 评论 328 浏览 评分:9.9
1135: C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:```cpp #include #include using namespace std; int main() { int a,n,sum=0; cin>>a>>n; …… 题解列表 2022年09月25日 0 点赞 0 评论 335 浏览 评分:9.9
1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:方法一: ```cpp #include using namespace std; int main() { for(int i=1000;i…… 题解列表 2022年09月25日 0 点赞 0 评论 678 浏览 评分:9.9
1137: C语言训练-求函数值 摘要:```cpp #include using namespace std; int f(int x); int main() { int x; cin>>x; c…… 题解列表 2022年09月25日 0 点赞 0 评论 507 浏览 评分:9.9
1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:```cpp #include using namespace std; int main() { int n,sum=0,a[10][10]; cin>>n; …… 题解列表 2022年09月25日 0 点赞 0 评论 340 浏览 评分:9.9
1139: C语言训练-求素数问题 摘要:```cpp #include #include using namespace std; bool ss(int n) { for(int i=2;i>n; for(i…… 题解列表 2022年09月25日 0 点赞 0 评论 351 浏览 评分:9.9
1140: C语言训练-求车速 摘要:方法一: ```cpp #include using namespace std; int main() { int N=95859; while(true) …… 题解列表 2022年09月25日 0 点赞 0 评论 444 浏览 评分:9.9
小学生的c++题解 摘要:解题思路:无注意事项:无参考代码:#include<iostream>using namespace std;int main(){ cout <<sizeof(int) << " "; …… 题解列表 2022年09月25日 0 点赞 0 评论 469 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转(多种方法合集) 摘要:解题思路:第一个方法,也是最简单的方法,输入以后逆序输出:这里使用了strlen函数,要记得加上头文件cstring(c语言是string.h)#include <iostream> #includ…… 题解列表 2022年09月27日 0 点赞 0 评论 611 浏览 评分:9.9