容易写到的直接解法pow()解释,代码逻辑非常简单 摘要:解题思路:直接pow( )注意事项:long long int 的最大值:9223372036854775807double 最大值:1.8 乘以 10 的308 次方2的一百次方等于12676506…… 题解列表 2024年11月11日 0 点赞 0 评论 233 浏览 评分:0.0
可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 142 浏览 评分:0.0
[STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 153 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 148 浏览 评分:0.0
题解 3142: 蓝桥杯2023年第十四届省赛真题-平方差(数学证明正解+打表找规律) 摘要:### 数学证明: 对于偶数和奇数分别有如下证明: 对任意偶数可以表示为:2*k,其中k为正整数。假如该偶数满足题目条件:x = y^2-z^2,即2*k = (y + z) * (y -…… 题解列表 2024年11月11日 4 点赞 1 评论 809 浏览 评分:10.0
简单易懂while循环就可以完成 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a,n,Tom; while(scanf("%ld",&n)!=EOF) { …… 题解列表 2024年11月11日 0 点赞 0 评论 331 浏览 评分:9.9
看不懂直接喷我 摘要:解题思路:注意事项: 看我评论!!!!!参考代码: #include #include int main() { int i; char a[300]; gets (a); int num=strle…… 题解列表 2024年11月11日 0 点赞 1 评论 335 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 218 浏览 评分:0.0
The 3n + 1 problem,goto真好用! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a, b, c和数组d,l用…… 题解列表 2024年11月11日 0 点赞 0 评论 202 浏览 评分:0.0
哥德巴赫猜想做题心得 摘要:解题思路:对称求和以及对素数的判断注意事项:这里我们需要理解题目的目的-输入n是偶数,这使得我们的循环是对称的(既(2-n)这个区间) 所以头尾相加可求得n 此时对题目的理解转变成判断首位数字是否同时…… 题解列表 2024年11月11日 0 点赞 0 评论 185 浏览 评分:0.0