编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int n){ int ans=0; for(int i=1;i<n;i…… 题解列表 2024年08月06日 0 点赞 0 评论 440 浏览 评分:0.0
2841: 大整数加法 摘要:```cpp #include using namespace std; struct hp { int len; int s[1000]; }; void init(string…… 题解列表 2024年08月05日 0 点赞 0 评论 369 浏览 评分:9.9
2116: 信息学奥赛一本通T1307-高精度乘法 摘要:```cpp #include using namespace std; struct hp { int len; int s[1000]; }; void init(string…… 题解列表 2024年08月05日 0 点赞 0 评论 469 浏览 评分:0.0
编写题解 1808: [编程基础]输入输出练习之精度控制1 摘要:解题思路:常规解题思路注意事项:精度位数,中英文符号。参考代码:#include<stdio.h>main(){ float a; scanf("%f",&a); printf("%.3f",a); …… 题解列表 2024年08月05日 1 点赞 0 评论 292 浏览 评分:9.9
2945: 素数对 摘要:```cpp #include using namespace std; bool js(int x){ int j=2; while(jsqrt(x); } int main() …… 题解列表 2024年08月04日 0 点赞 0 评论 157 浏览 评分:0.0
2937: 短信计费 摘要:```cpp #include using namespace std; int jf(int n,int a[]){ double s=0; for(int i=0;in; int…… 题解列表 2024年08月04日 0 点赞 0 评论 174 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:将输入的四位数n进行对10取余,再除以10,得到各个位数的值后,加上48,放入字符型数组,在函数中直接按要求输出。注意事项:1.ASCII的存储方式与整形数据相似。所以可以用整形常量给字符型…… 题解列表 2024年08月04日 0 点赞 0 评论 263 浏览 评分:0.0
位运算基础 摘要:#include<bits/stdc++.h> using namespace std; #define int long long int lowbit(int x) { ret…… 题解列表 2024年08月04日 0 点赞 0 评论 116 浏览 评分:0.0
STL中有swap交换(无需手搓) 摘要:#include<bits/stdc++.h> using namespace std; const int N=1010; int a[N]; int main() { int n,m…… 题解列表 2024年08月04日 0 点赞 0 评论 118 浏览 评分:0.0
这个比1246数据要强,考虑了闰年的情况 摘要:#include<bits/stdc++.h> using namespace std; int main() { int y,m,d; char c; while…… 题解列表 2024年08月04日 0 点赞 0 评论 191 浏览 评分:0.0