亲和数(水题) ```c#includelonglongf(intn){longlongi,sum=0;for(i=1;i 题解列表 2023年02月02日 0 点赞 0 评论 587 浏览 评分:0.0
最简单的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define a 9//定义数组长度 int main (){ int max[a]={0}; int i; for(i=0;i<a…… 题解列表 2023年02月02日 0 点赞 0 评论 547 浏览 评分:0.0
程序员的总统梦 摘要:解题思路:蒙混过关注意事项:我是彩笔,仅限参考参考代码: while True: c = [] a=int(input()) if a==0: break e…… 题解列表 2023年02月02日 0 点赞 0 评论 619 浏览 评分:0.0
编写题解 2841: 大整数加法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int maxmine = 210; int a[maxmine…… 题解列表 2023年02月02日 0 点赞 0 评论 676 浏览 评分:0.0
一个while循环,用了点小技巧,代码的关键就在y=y-m 摘要:#include<stdio.h> int main() { int n = 0; double m = 0, y = 0; scanf("%lf %d", &m, &n); wh…… 题解列表 2023年02月02日 0 点赞 0 评论 496 浏览 评分:0.0
偶数求和(水题) 摘要:```c #include int main(){ int n,m,r,aa,a[100],i,j,k=0,sum=0; while(scanf("%d%d",&n,&m)!=EOF…… 题解列表 2023年02月02日 0 点赞 0 评论 509 浏览 评分:0.0
练习题_保留字母 摘要:解题思路:创建一个空的string和一个char类型数据,使用cin.get()读入数据存放于char中,只要是字母就+=赋值。注意事项:参考代码:#include<iostream>#include…… 题解列表 2023年02月02日 0 点赞 0 评论 548 浏览 评分:0.0
1093 字符逆序 字符串 摘要:#include<stdio.h>#include<string.h> int main(){ char str[100]; gets(str); int a,i,temp; a=strlen(str…… 题解列表 2023年02月02日 0 点赞 0 评论 523 浏览 评分:0.0
和前面的全排列一样 答案对 提交为啥一直是编译错误 求大哥 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int b[100000];int a[100000];int n;int inde…… 题解列表 2023年02月02日 0 点赞 0 评论 817 浏览 评分:0.0
偶数列举、、、 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,n; scanf("%d",&n); for(i=1;i<n;++i){ if(i%2==0){…… 题解列表 2023年02月03日 0 点赞 0 评论 571 浏览 评分:0.0