哥德巴赫猜想做题心得 摘要:解题思路:对称求和以及对素数的判断注意事项:这里我们需要理解题目的目的-输入n是偶数,这使得我们的循环是对称的(既(2-n)这个区间) 所以头尾相加可求得n 此时对题目的理解转变成判断首位数字是否同时…… 题解列表 2024年11月11日 0 点赞 0 评论 228 浏览 评分: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 评论 240 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 250 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 179 浏览 评分:0.0
[STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 206 浏览 评分:0.0
可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 164 浏览 评分:0.0
容易写到的直接解法pow()解释,代码逻辑非常简单 摘要:解题思路:直接pow( )注意事项:long long int 的最大值:9223372036854775807double 最大值:1.8 乘以 10 的308 次方2的一百次方等于12676506…… 题解列表 2024年11月11日 0 点赞 0 评论 274 浏览 评分:0.0
注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 175 浏览 评分:0.0
[STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a;…… 题解列表 2024年11月12日 0 点赞 0 评论 214 浏览 评分:0.0
用c语言解决字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { char ch;int j,z,k,s; j=z=k=s=0; while((ch=getc…… 题解列表 2024年11月12日 1 点赞 0 评论 528 浏览 评分:0.0