3077: 信息学奥赛一本通T1332-周末舞会 摘要:参考代码: ```cpp #include using namespace std; vectorcouples; int men, women; int n; queueq_men, …… 题解列表 2022年12月21日 0 点赞 0 评论 887 浏览 评分:7.3
C语言数组问题-遍历整个数组-时间复杂度O2 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[100]={0}; int n,i; int cnt,count…… 题解列表 2022年12月21日 0 点赞 0 评论 404 浏览 评分:0.0
没人写我就放一个吧 摘要://隨手寫一點吧!递归思想,考虑有无盘子空出的情况,1.有盘子则按每次盘子数量少一的情况,2.如果没有盘子空出也就意味着每个盘子都会最少存在一个果子//当没有苹果了,或者只有一个盘子的时候,那就只有一…… 题解列表 2022年12月20日 0 点赞 1 评论 877 浏览 评分:9.9
2809:简便的算法求第N项斐波那契数列-《C语言》 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { long long f1 = 1,f2 = 1,f3; int i = 0; int …… 题解列表 2022年12月20日 0 点赞 0 评论 487 浏览 评分:0.0
编写题解 1394: 永远的丰碑 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main () { int n; while(~scanf ("%d"…… 题解列表 2022年12月20日 0 点赞 0 评论 514 浏览 评分:0.0
C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,i; double s=1,t=0; scanf("%d",&m); for(i=2;i<=m;i+…… 题解列表 2022年12月20日 0 点赞 0 评论 336 浏览 评分:0.0
[编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ int a=100000; if(x<=a) { return 0.1*x; } else if(x<…… 题解列表 2022年12月20日 0 点赞 0 评论 394 浏览 评分:0.0
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,n; scanf("%d %d",&a,&n); int i=0,cheng=1; …… 题解列表 2022年12月20日 0 点赞 0 评论 658 浏览 评分:9.5
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N,M; scanf("%d %d",&N,&M); int a,i=1,c=0; w…… 题解列表 2022年12月20日 0 点赞 0 评论 534 浏览 评分:9.0
优质题解 后缀表达式的值 摘要:解题思路: 1.从左到右扫描后缀表达式的每一个字符。 2.如果读入的字符是数字,将其转化为整数,并将其压入栈中。 3.如果读入的字符是运算符,则从栈中取出两个运算数,进行计算,并将结果压入栈中。…… 题解列表 2022年12月20日 1 点赞 0 评论 845 浏览 评分:6.8