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 评论 265 浏览 评分:0.0
和前面的全排列一样 答案对 提交为啥一直是编译错误 求大哥 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int b[100000];int a[100000];int n;int inde…… 题解列表 2023年02月02日 0 点赞 0 评论 533 浏览 评分: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 评论 306 浏览 评分:0.0
求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int b,n,i,sum=0; scanf("%d/n",&n) ;for(i=1;i<=n;i++){ s…… 题解列表 2023年02月03日 0 点赞 0 评论 317 浏览 评分:0.0
1229: 最小公倍数 摘要:解题思路:用递归的方法,就可以用简洁的代码解决了。注意事项:参考代码:n1,n2=map(int,input().split())def get(n1,n2): if n1%n2==0: …… 题解列表 2023年02月03日 0 点赞 0 评论 331 浏览 评分:0.0
1227: 日期排序 摘要:解题思路:输入很简单,不用多说,我们把年月日做成一个小列表,塞进大列表里,然后再排序输出就可以了,很简单的一道题。注意事项:参考代码:n=[]while True: try: s=…… 题解列表 2023年02月03日 0 点赞 0 评论 673 浏览 评分:0.0
1235: 检查金币 摘要:解题思路:题目可以直接用10个for循环搞定,虽然代码不是很简洁,但思路简单。注意事项:参考代码:while True: try: n=int(input()) fo…… 题解列表 2023年02月03日 0 点赞 0 评论 335 浏览 评分:0.0
1256: 诡秘的余数 我无语了。。。 摘要:解题思路:写这题时,我无语了。。。只要把“+”改成“%”就好了。注意事项:参考代码:while True: try: a,b=map(int,input().strip().…… 题解列表 2023年02月03日 0 点赞 0 评论 507 浏览 评分:0.0
鸡兔同笼(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b,c,d; scanf("%d",&n); for(a=0;a<…… 题解列表 2023年02月03日 0 点赞 0 评论 630 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:利用辗转相除法求最大公因数int a,b,c,d,e,f,g; scanf("%d %d",&a,&b); d=a; e=b; while(b!=0) { …… 题解列表 2023年02月03日 0 点赞 0 评论 242 浏览 评分:0.0