输入输出--A+B 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>using namespace std;int main(){int a,b;while(cin…… 题解列表 2022年03月11日 0 点赞 0 评论 490 浏览 评分:0.0
输入输出--A+B 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; …… 题解列表 2022年03月11日 0 点赞 0 评论 525 浏览 评分:0.0
1530: 蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:注意事项:参考代码:n=input() s=0 while n!=6174: ls=[int(i) for i in str(n) if i.isdigit()] i…… 题解列表 2022年03月11日 0 点赞 0 评论 470 浏览 评分:0.0
1536: 蓝桥杯算法提高VIP-最长单词 摘要:解题思路:注意事项:参考代码:n=list(map(str,input().split())) ls=[len(i) for i in n] ls.sort() for i in n: …… 题解列表 2022年03月11日 0 点赞 0 评论 694 浏览 评分:0.0
1537: 蓝桥杯算法提高VIP-栅格打印问题 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) if n>0 and m>0: for i in range(n): print(…… 题解列表 2022年03月11日 0 点赞 0 评论 1259 浏览 评分:0.0
二级C语言-阶乘数列(易忽视的地方) 摘要:解题思路:注意事项:科学计数法保留两位小数,输出时用%.2e而不是%.2f参考代码:#include<stdio.h>int main(){ int i; double sum=0,x=1…… 题解列表 2022年03月11日 0 点赞 0 评论 592 浏览 评分:0.0
蓝桥杯2014年第五届真题-排列序数 ```cpp#includeusingnamespacestd;constintN=100000;intk=0,l,vis[N];chars[N];charres[N];charst[N];voiddfs(inta){if(a==l){if(!strcmp(res, 题解列表 2022年03月11日 0 点赞 0 评论 590 浏览 评分:0.0
dp与dfs 蓝桥杯2014年第五届真题-地宫取宝 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int MOD = 1000…… 题解列表 2022年03月11日 0 点赞 0 评论 629 浏览 评分:0.0
(简单易懂)自定义函数之字符串拷贝 注意事项:getchar()是读入函数的一种。它从标准输入里读取下一个字符,相当于getc(stdin)。返回类型为int型,为用户输入的ASCII码或EOF。getchar有一个int型的返回值。当程序调用getchar时.程序就等着用户按键。 题解列表 2022年03月11日 0 点赞 0 评论 719 浏览 评分:0.0
数列排序(用选择排序法做) 摘要:```c #include int main() { int n,i,min,j,t; int a[10000]; scanf("%d",&n); for(i=0;i…… 题解列表 2022年03月11日 0 点赞 0 评论 694 浏览 评分:0.0