使用选择法排序字符串 ```c#include#includeintmain(){chara[3][100];for(inti=0;i 题解列表 2023年02月02日 0 点赞 0 评论 635 浏览 评分:0.0
判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); if(x%3==0&&x%5==0) printf("Y…… 题解列表 2023年02月02日 0 点赞 0 评论 505 浏览 评分:0.0
递归写法,分子分母拆分成2组斐波那锲数列 摘要:#include<stdio.h> int Fun(int n) { if (n==1) { return 1; } if (n==2) { return 2; …… 题解列表 2023年02月02日 0 点赞 0 评论 529 浏览 评分:0.0
1250: 素数回文 ```cpp#includeusingnamespacestd;boola[100001000];intmain(){longlongn1,n2,t=0,t1,t2=0;cin>>n1>>n2;for(inti=2;i 题解列表 2023年02月02日 0 点赞 0 评论 591 浏览 评分:9.9
结构体之时间设计C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct date{ int year; int month; int d…… 题解列表 2023年02月02日 0 点赞 0 评论 541 浏览 评分:0.0
1249: 简单编码 ```cpp#includeusingnamespacestd;intmain(){stringstr;while(getline(cin,str)){if(str=="END")break;intn=str.size();for(inti=0;i 题解列表 2023年02月02日 0 点赞 0 评论 723 浏览 评分:9.9
第一个写题解的 有点意外哈哈 ```c#include#includeintmain(){chara[1000];intflag=0;//flag作为间断点gets(a);//gets能接收空格,不能使用scanf(切记)for(inti=0;i 题解列表 2023年02月02日 0 点赞 0 评论 752 浏览 评分:8.0 python两行代码通过 #####关于找到规律之后python两行代码通过这件事```pythonn,s=map(int,input().split())print((int(s)+int(2**(n+1)-n-2))//int(2**(n+1)-1))```>######ps.代码题还是应该认真写代码, 题解列表 2023年02月01日 0 点赞 0 评论 655 浏览 评分:9.0 自定义函数之整数处理(入门必备) 题目:输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。写三个函数;①输入10个数;②进行处理;③输出10个数。分析:1,输入10个整数,并实现各个整数的交换,要用到数组(arr)。连续输入10个整数需要循环,用for语句即可。 题解列表 2023年02月01日 0 点赞 0 评论 687 浏览 评分:9.9 递归写法,新手尝试,欢迎优化 摘要:#include<stdio.h> #include<math.h> int Fun(int x) { while (x > 0) { return 2 * ((int)pow(1…… 题解列表 2023年02月01日 0 点赞 0 评论 437 浏览 评分:0.0 « 12...1570157115721573157415751576...59145915 »
python两行代码通过 #####关于找到规律之后python两行代码通过这件事```pythonn,s=map(int,input().split())print((int(s)+int(2**(n+1)-n-2))//int(2**(n+1)-1))```>######ps.代码题还是应该认真写代码, 题解列表 2023年02月01日 0 点赞 0 评论 655 浏览 评分:9.0
自定义函数之整数处理(入门必备) 题目:输入10个整数,将其中最小的数与第一个数对换,把最大的数与最后一个数对换。写三个函数;①输入10个数;②进行处理;③输出10个数。分析:1,输入10个整数,并实现各个整数的交换,要用到数组(arr)。连续输入10个整数需要循环,用for语句即可。 题解列表 2023年02月01日 0 点赞 0 评论 687 浏览 评分:9.9
递归写法,新手尝试,欢迎优化 摘要:#include<stdio.h> #include<math.h> int Fun(int x) { while (x > 0) { return 2 * ((int)pow(1…… 题解列表 2023年02月01日 0 点赞 0 评论 437 浏览 评分:0.0