1044一行解(Python) 摘要:注意事项:这种解法同时适用于更多字符串输入的情形参考代码:import sysfor data in sorted([data.strip() for data in sys.stdin]) : pr…… 题解列表 2022年11月05日 0 点赞 0 评论 426 浏览 评分:9.9
1058: 二级C语言-求偶数和 题解 摘要:解题思路:1.输入需要输入n个整数;2.通过for循环输入n个整数;3.每通过for循环得到一个数,就判断它是否是偶数,如果是,就直接和偶数和相加。注意事项:输入的整数之间用空格分开。#include…… 题解列表 2022年11月05日 0 点赞 0 评论 311 浏览 评分:9.9
C语言考试练习题_排列(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,k; int a[4]; for(i=0;i<4;i++) s…… 题解列表 2022年11月05日 0 点赞 0 评论 193 浏览 评分:0.0
奥运奖牌计数(超简单,很容易看懂) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,a,b,c; int a1=0,b1=0,c1=0…… 题解列表 2022年11月05日 0 点赞 0 评论 902 浏览 评分:8.7
1043一行解(Python) 摘要:注意事项:可以参考一下其他人的一行解,体会其中的不同点参考代码:for data in [i for i in sorted(map(int, input().split()))] : print(d…… 题解列表 2022年11月05日 0 点赞 0 评论 263 浏览 评分:9.9
苹果和虫子(超简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n, x, y; cin >> n >> x >>…… 题解列表 2022年11月05日 0 点赞 0 评论 389 浏览 评分:6.0
C语言考试练习题_保留字母(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char n[80]; gets(n); for(int …… 题解列表 2022年11月05日 0 点赞 0 评论 189 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum=0;int j,n,i; while(scanf("%d",&n)!=EOF) …… 题解列表 2022年11月05日 0 点赞 0 评论 142 浏览 评分:0.0
1160: 出圈(c++) 摘要:```cpp #include using namespace std; int main() { int n,m; while(cin>>n>>m) { …… 题解列表 2022年11月05日 0 点赞 0 评论 453 浏览 评分:9.9
1159: 偶数求和 摘要:```cpp #include using namespace std; int main() { int n,m,num[100]; num[0]=2; for…… 题解列表 2022年11月05日 0 点赞 0 评论 328 浏览 评分:0.0