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 评论 361 浏览 评分: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 评论 343 浏览 评分: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 评论 512 浏览 评分: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 评论 682 浏览 评分: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 评论 343 浏览 评分: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 评论 332 浏览 评分:9.9
2991——————八进制到十进制 摘要: s = input() num = 0 for i in range(len(s)): num = int(s[i])+8*num print(…… 题解列表 2022年09月25日 0 点赞 0 评论 514 浏览 评分:6.0
小白题解 2901: 查找特定的值 摘要:解题思路:原本以为使用字符串可以解决了呢,没想到现实给我了一个大逼斗 无奈至极注意事项:参考代码:n = input()li = input().split()s = input()if s in l…… 题解列表 2022年09月25日 0 点赞 0 评论 704 浏览 评分:0.0
2973——————出现次数超过一半的数 摘要: n = int(input()) m = input().split() if n == len(m): d = {…… 题解列表 2022年09月24日 0 点赞 0 评论 605 浏览 评分:9.9
最大公约数。。 摘要:参考代码:import java.util.*; import java.math.*; public class Main { public static void main(String[…… 题解列表 2022年09月24日 0 点赞 0 评论 478 浏览 评分:0.0