1633: 蓝桥杯算法训练VIP-数的统计 摘要:n=int(input()) l=list(map(int,input().split())) dic={} for i in l: if i not in dic: …… 题解列表 2022年04月25日 0 点赞 0 评论 322 浏览 评分:0.0
1632: 蓝桥杯算法训练VIP-数对 摘要:n=int(input()) for i in range(1,n+1): if n%i==0: print(f'{i} * {n//i} = {n}')…… 题解列表 2022年04月25日 0 点赞 0 评论 505 浏览 评分:0.0
1609: 蓝桥杯算法训练VIP-黑色星期五 摘要:def isyun(n): if n%100==0: if n%400==0: return 1 else: 题解列表 2022年04月25日 0 点赞 0 评论 486 浏览 评分:0.0
编写题解 1504: 蓝桥杯算法提高VIP-勾股数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int a=1;a<=1000;a++) { …… 题解列表 2022年04月25日 0 点赞 0 评论 353 浏览 评分:0.0
编写题解 1468: 蓝桥杯基础练习VIP-报时助手 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m; string…… 题解列表 2022年04月25日 0 点赞 0 评论 430 浏览 评分:0.0
最简单版本 摘要:解题思路:好吧,我承认我看题解了注意事项:无参考代码:#include<stdio.h>int main(){ int n,i,a[10],j; for(i=0;i<9;i++){ …… 题解列表 2022年04月25日 0 点赞 0 评论 364 浏览 评分:0.0
1220题解 C++ 序列有序 新思路 摘要:解题思路: 1.把数直接插入原序列的末尾 2.然后用sort函数对新序列进行排序后再输出 注意事项: 利用sort函数要加algorithm的头文件 参考代码: ```cpp #incl…… 题解列表 2022年04月25日 0 点赞 0 评论 503 浏览 评分:0.0
二级c语言--求素数-c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std; int isprime(int n){ int c=0; if(n==1)return …… 题解列表 2022年04月25日 0 点赞 0 评论 717 浏览 评分:9.9
优质题解 1093: 字符逆序 摘要:解题思路:(1)利用反向迭代器reverse_iterator:rbegin() 和 rend(),比如:string str1("1234567890"); string str2(str1.rb…… 题解列表 2022年04月25日 1 点赞 0 评论 2890 浏览 评分:9.8
优质题解 1097: 蛇行矩阵 摘要:解题思路:(1)建一个大小为 N 的二维数组。(2)定义一个计数器,每生成一节蛇就+1。(3)生成蛇的顺序是斜着、从行开始,比如蛇的第二条斜线,就是在 (1, 0) 和 (0, 1) 的位置按顺序生成…… 题解列表 2022年04月25日 2 点赞 2 评论 2713 浏览 评分:9.8