1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:把题目要求输出的输出就好了。注意事项:endl用来换行,且可以用<<连续输出。参考代码:#include using namespace std; int main(){ cout <…… 题解列表 2022年02月19日 0 点赞 0 评论 391 浏览 评分:6.0
还行,一般般吧 摘要:解题思路:注意事项:参考代码:a=str(input())b=[]for i in a: i=ord(i) if i in range(97,122): b.append(c…… 题解列表 2022年02月21日 0 点赞 0 评论 527 浏览 评分:6.0
题解 1069: 二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:1.scanf函数需要加&符号参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); //输入…… 题解列表 2022年02月21日 0 点赞 0 评论 495 浏览 评分:6.0
1054: 二级C语言-计算素数和(c语言--简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int isprime(int x) { if(x<2)return 0; for(i…… 题解列表 2022年02月22日 0 点赞 0 评论 476 浏览 评分:6.0
Hankson的趣味题JAVA版本 摘要:解题思路: 首先, 我们通过题目应该知道 a1<= x <= b1, 如果以此范围暴力枚举 x , 对于b1很大, a1很小的情况求解 x 可能会超时; 因此,我们需要优化枚举的范围,我…… 题解列表 2022年02月22日 0 点赞 1 评论 404 浏览 评分:6.0
汽水瓶(C语言代码)超级简单!!!!! 摘要:解题思路:两个瓶子就可以换一瓶新的,So........注意事项:n =0 的时候表示输入结束(做的时候没看到,错了两次)参考代码:#include<stdio.h> int main() { …… 题解列表 2022年02月22日 0 点赞 0 评论 400 浏览 评分:6.0
Java带图易理解-蓝桥杯真题-打印十字图 摘要:解题思路:分别填充两天斜线上的 '.'分别填充1 2 3 4 区中的 '.'最后将非 '.' 位置循环填充 '$' 即可参考代码:imp…… 题解列表 2022年02月23日 0 点赞 0 评论 792 浏览 评分:6.0
2581: 蓝桥杯2020年第十一届省赛真题-字符串编码C++ 摘要:解题思路:STL大法好,用string存储字符串,利用贪心的思路,每次尽量让输出的字母字典排序更高。首先用string类存储字符串。每次输出前先判断字符串前两位数字是否在[1,26]的区间中(1)不在…… 题解列表 2022年02月23日 0 点赞 1 评论 891 浏览 评分:6.0
c++编写题解 1118: Tom数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> using namespace std; int main() { long l…… 题解列表 2022年02月26日 0 点赞 1 评论 521 浏览 评分:6.0
蓝桥杯2021年第十二届省赛真题-时间显示 摘要:#include<stdio.h>int main(){ long long s; scanf("%lld",&s); int ss=s/1000; int hh=ss/360…… 题解列表 2022年02月28日 0 点赞 0 评论 635 浏览 评分:6.0