C语言训练-"水仙花数"问题1 简单解法 摘要:解题思路: 一 if else嵌套使用 二 明确求输入数字的各个位数上的数字的方法: 1.结合整形数据类型与除法求特定位数上的数字 …… 题解列表 2023年02月10日 1 点赞 0 评论 319 浏览 评分:9.9
2128: 信息学奥赛一本通T1264-合唱队形 摘要:解题思路:运用动态规划解此题!!!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1005],b[1005],c[1005…… 题解列表 2023年02月10日 0 点赞 0 评论 318 浏览 评分:6.0
1334: [NOIP2004]合唱队形 摘要:解题思路:这道题其实就是从前和从后来求两个不下降序列。 b[i]:从第i个数开始的最长不下降序列 c[i]:从第i个数结束的最长不下降序列 类似与登山。注意事项:注意>号和<号!参考代码:#in…… 题解列表 2023年02月10日 0 点赞 0 评论 433 浏览 评分:9.9
编写题解 1025: [编程入门]数组插入处理 -- 冒泡排序原理 摘要:解题思路:运用冒泡排序的原理,将插入的数据,与排好顺序的数组,依次比大小。 ```c #include int main(void) { int a[10]; //插入数据后的数组长度。…… 题解列表 2023年02月10日 0 点赞 0 评论 275 浏览 评分:0.0
编写题解 1117: K-进制数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long LL;LL n,k,res;LL fac(in…… 题解列表 2023年02月10日 0 点赞 0 评论 304 浏览 评分:9.9
1866: 三位数反转(Python) 摘要:解题思路:注意事项:参考代码:while True: try: n = input() m = n[::-1]   题解列表 2023年02月10日 0 点赞 2 评论 772 浏览 评分:7.3
2772: 苹果和虫子(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * Pi=3.14159 tmp = input() n,x,y = tmp.split() n = int(n) x …… 题解列表 2023年02月10日 0 点赞 0 评论 531 浏览 评分:2.0
去掉空格(太折磨了,但这个代码大家都看得懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; char ch; int i = 0,coun…… 题解列表 2023年02月10日 0 点赞 0 评论 321 浏览 评分:9.9
计算(a+b)/c的值 (c++) 摘要:解题思路:先定义整数a,b,c,用cout输出(a+b)/c的值,就可以提交代码了。参考代码:#include<iostream>//导入头文件using namespace std;int main…… 题解列表 2023年02月10日 0 点赞 0 评论 757 浏览 评分:9.9
计负均正1061题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num[20]; double count=0.0…… 题解列表 2023年02月10日 0 点赞 0 评论 262 浏览 评分:0.0