1074: 数字整除 摘要:解题思路:(1)一开始的思路是写一个大整数类,重载 '-' 和 '/' 运算符,然后按照题目来。但这属于大炮打蚊子了。(2)然后看了优质题解发现,题目给的判断原理似乎并…… 题解列表 2022年04月17日 0 点赞 0 评论 502 浏览 评分:9.9
同因查找-while循环(C语言代码) 摘要:解题思路:while循环,从10开始到1000,依次输出符合值。注意事项:范围大小(10-1000)参考代码:#include<stdio.h>int main(){ int n=10; scanf(…… 题解列表 2022年04月18日 0 点赞 0 评论 787 浏览 评分:9.9
因式分解,数学是算法的基石,学好数理化,走遍天下都不怕 摘要:解题思路:用初中所学知识因式分解来做,如果按正常for循环暴力累乘的话肯定会超时注意事项:数据范围给的是20万,注意不要开小了参考代码:#include <iostream> using names…… 题解列表 2022年04月18日 0 点赞 2 评论 1836 浏览 评分:9.9
编写题解 1265: 青年歌手大奖赛_评委会打分 摘要:解题思路:利用STL中deque容器,(双端数组)。方便头删尾删。注意事项:记得每一次输出完清空容器。参考代码:#include<iostream>using namespace std;#inclu…… 题解列表 2022年04月18日 0 点赞 0 评论 510 浏览 评分:9.9
蓝桥杯2016年第七届真题-最大比例 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())l=list(map(int,input().split()))s=set(l)l=list(s)l.so…… 题解列表 2022年04月18日 0 点赞 0 评论 570 浏览 评分:9.9
编写题解 1040: [编程入门]实数的打印(python 超短) 摘要:#只要理解代码的每个部分在干什么就可以了user = float(input()) for i in range(1, 4): print(("{:6.2f} ".format(user)…… 题解列表 2022年04月18日 0 点赞 0 评论 834 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:题目求只是四位数注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=1000&&a<=1000…… 题解列表 2022年04月19日 0 点赞 0 评论 424 浏览 评分:9.9
菜鸟解答,大神勿喷 摘要:解题思路:注意事项:参考代码:#include"stdio.h" int main(){ int a,b,c,d,e,t,g; scanf("%d",&g); if(g>9999) t=5; else…… 题解列表 2022年04月19日 0 点赞 0 评论 384 浏览 评分:9.9
艰难,艰难 摘要:解题思路:注意事项:参考代码:#include"stdio.h" int main(){ int a; scanf("%d",&a); if(a<=100000) a=a*0.1; else if(a…… 题解列表 2022年04月19日 0 点赞 0 评论 413 浏览 评分:9.9
题目 2657: 蓝桥杯2022年第十三届省赛真题-修剪灌木-7行 摘要:解题思路:找到离两边的最大值在*2注意事项:参考代码:#include <iostream> using namespace std; int main() { int n; …… 题解列表 2022年04月19日 0 点赞 1 评论 1049 浏览 评分:9.9