蓝桥杯2017年第八届真题-k倍区间 前缀和 摘要:解题思路:#include <iostream> using namespace std; typedef long long ll; const int N = 1e5 + 10; …… 题解列表 2024年04月16日 0 点赞 0 评论 321 浏览 评分:9.9
虽然能通过不过我感觉输入一些数答案不是质数!!!例如输入50会输出25!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; scanf("%d",&n); for(i=2;i<n;i++) …… 题解列表 2024年04月16日 0 点赞 0 评论 177 浏览 评分:0.0
有点小难,但不多(自信) 摘要:思路:代码:#include <stdio.h> int main(void) { float C,F; scanf("%f", &F); //用来输出实数,…… 题解列表 2024年04月16日 0 点赞 0 评论 537 浏览 评分:0.0
python--study||O.o 摘要:参考代码:#每个草丛只能是1个'#'或2个'#' dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def f(x, y): …… 题解列表 2024年04月17日 0 点赞 0 评论 226 浏览 评分:0.0
信息学奥赛一本通T1264-合唱队形 摘要:解题思路:双向最长上升/下降子序列注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int …… 题解列表 2024年04月17日 0 点赞 0 评论 195 浏览 评分:9.9
自定义函数求一元二次方程 摘要:解题思路:废话不多说,直接看代码注意事项:▲ < 0 时,方程没有实数根,但是会有2个共轭复根参考代码:#include<stdio.h>#include<math.h>void q_gen(doub…… 题解列表 2024年04月17日 0 点赞 1 评论 164 浏览 评分:9.9
辗转相除法 摘要:解题思路: 先计算最大公约数,再计算最小公倍数,然后验证是否准确注意事项: 无参考代码:#include <stdio.h>//辗转相除法int main(void){ int in…… 题解列表 2024年04月17日 0 点赞 0 评论 228 浏览 评分:0.0
【编程入门】密码破译 摘要:解题思路:破译之后的密码是在为破译的密码在ASCII的值上加4注意事项:if(a[i]=='\n')break;要注意添加这一段程序,就可以在输入回车之后,跳出遍历数组a的循环参考代码…… 题解列表 2024年04月17日 1 点赞 0 评论 511 浏览 评分:0.0
【编程入门】数字的处理和判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[10]; int i,we…… 题解列表 2024年04月17日 0 点赞 0 评论 420 浏览 评分:0.0
【编程入门】筛选N以内的所有素数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i,N,j,a; scanf("%d",&N); for(i=2…… 题解列表 2024年04月17日 0 点赞 0 评论 117 浏览 评分:0.0