Big Bang(一般解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>typedef struct Node{ char a[32];…… 题解列表 2023年05月24日 0 点赞 0 评论 279 浏览 评分:10.0
优质题解 逆序数的问题 摘要:## 假如这个题换一种说法,n个人如果是线性排列,要使123456…n变成n…654321, 那么需要的时间总数就是(n-1)+…+5+4+3+2+1=n*(n-1)/2;即1右移n-1步, …… 题解列表 2023年05月28日 1 点赞 1 评论 605 浏览 评分:10.0
1211基础解法(Python) 摘要:注意事项:用import sys的情况下进行多行输入第一个测试点有问题,但是结果没有错误,所以这两种方式有什么区别呢?参考代码:while True: try: a,b = map…… 题解列表 2023年05月29日 1 点赞 0 评论 329 浏览 评分:10.0
第十二届国赛真题-异或变换 摘要:解题思路:存在一个最小的整数x,使得pow(2,x)>=n,则每隔pow(2,x)就会循环一次。注意事项:参考代码:#include<iostream>#include<cstring>using n…… 题解列表 2023年05月31日 0 点赞 0 评论 384 浏览 评分:10.0
A+B for Input-Output Practice (VI) 摘要:#include<stdio.h> int main(){ int a; int b; int sum = 0; while(scanf("%d",&a)!=EOF){ …… 题解列表 2023年06月05日 0 点赞 0 评论 274 浏览 评分:10.0
2766: 甲流疫情死亡率(c语言)参考2765 摘要:解题思路:可以参考题号为2765的计算分数的浮点数值的输入类型注意事项:参考代码:#includeint main(){ int a,b; double c; scanf("%d%d\n",&a,&b…… 题解列表 2023年07月01日 2 点赞 0 评论 478 浏览 评分:10.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,a; cin>>n; …… 题解列表 2023年07月01日 1 点赞 0 评论 317 浏览 评分:10.0
只用循环和判断语句不用数组也能写? 摘要:解题思路:我的思路是先遍历灯,再遍历人在,其中用K去储存灯的状态,判断每一个灯在遍历一遍人后是否为关闭状态,是的话就输出。注意事项:参考代码:#include<iostream>using names…… 题解列表 2023年07月09日 0 点赞 0 评论 327 浏览 评分:10.0
程序员爬楼梯(C++dp简单解题) 摘要: 记得五星好评哦 ```cpp #include #include using namespace std; int cli…… 题解列表 2023年07月20日 1 点赞 0 评论 443 浏览 评分:10.0
3020: 最大数位置(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年07月21日 1 点赞 2 评论 711 浏览 评分:10.0