题解列表
编写题解 1016: [编程入门]水仙花数判断
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int x,y,z; for(int a=100; a<1000; ……
蓝桥杯算法训练VIP-最长字符串(C语言)
摘要:#include <stdio.h>
#include <string.h>
int main()
{
int i;
int n = 0;
char p[100] ……
编写题解 1015: [编程入门]求和训练
摘要:解题思路:注意事项:cout<<std::fixed<<setprecision(2)<<xxx=====cout<<setiosflags(ios::fixed)<<setprecision(2)<……
编写题解 1014: [编程入门]阶乘求和
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int a,m; long long sum=0; cin>>a; ……
2150拦截导弹问题 简单贪心算法(注释很详细)
摘要://贪心规则:炮弹打过来,让当前高度最低的系统去应对
//如果应对不了,就加一个系统,最后统计系统数
#include<bits/stdc++.h>
int s[1005];//系统sy……
暴力解法(凑字数。。。。。。。
摘要:解题思路:def sushu(n): if n==2: return 2 for i in range(2, n): if n % i == 0: ……
信息学奥赛一本通T1328-光荣的梦想
摘要:解题思路:运用冒泡排序注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
int a[1000000],n,sum;
int main(……
简单求解猴子吃桃的问题
摘要:解题思路:反向思维注意事项:只吃了九天,每天吃一半加一参考代码:#include<stdio.h>int main(){ int n,t=1; scanf("%d",&n); for(int i……