编写题解 2330: 信息学奥赛一本通T1178-成绩排序(Python) 摘要:解题思路:利用sorted()函数进行排序注意事项:首先按成绩排序,如果成绩相同则按名字升序参考代码:n = int(input())sc_dict = {}for i in range(n): …… 题解列表 2024年11月23日 0 点赞 0 评论 322 浏览 评分:9.9
2788普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a; scanf("%d",&n); if (n == 1 || n == 3 || n == 5…… 题解列表 2024年11月23日 0 点赞 0 评论 144 浏览 评分:0.0
2790-普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x,y; scanf("%f",&x); if ( 0 <= x && x < 5) y=-x+2…… 题解列表 2024年11月23日 0 点赞 0 评论 238 浏览 评分:0.0
2792-普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if ( a + b > c && …… 题解列表 2024年11月23日 0 点赞 0 评论 252 浏览 评分:0.0
自定义函数求一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main() { double a,b,c,x1,x2;cin>>a>>b>>c; …… 题解列表 2024年11月23日 2 点赞 0 评论 1114 浏览 评分:10.0
结构体链表,超清晰思路 #1676: 数据结构-链表的基本操作(C++) 摘要:**数据量很大时要使用C语言的输入输出,这道题如果用cin,cout很可能超时** ``` #include #include typedef struct lNode { int d…… 题解列表 2024年11月23日 2 点赞 0 评论 272 浏览 评分:0.0
2950: 素数回文数的个数 摘要:```c #include using namespace std; const int maxn=2000010; int prime[maxn]; void judge_prime(in…… 题解列表 2024年11月23日 0 点赞 0 评论 182 浏览 评分:0.0
1480-普普通通的解题方法 摘要:解题思路:注意事项:用scanf写输入格式时,如果只想写一行,注意两个%d之后加一个空格再接%c。参考代码:#include<stdio.h>int ch(char c){ if (c == '…… 题解列表 2024年11月23日 0 点赞 0 评论 377 浏览 评分:0.0
信息学奥赛一本通T1323-活动选择,来看看吧╮(¯▽¯)╭ 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体a,包含两个整数成员b和e struct a{ …… 题解列表 2024年11月23日 0 点赞 0 评论 137 浏览 评分:0.0
2000-普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,t; scanf("%d",&n); for (int i = 0;i<n;i++) { if …… 题解列表 2024年11月23日 1 点赞 0 评论 417 浏览 评分:0.0