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