去掉余数为2的数即可 摘要:关键在于,如何判断某个数是不是平方差 ```c++ #include using namespace std; bool function(int x) { bool res =…… 题解列表 2024年03月03日 0 点赞 0 评论 214 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n = 0; int qian = 1000; int hou = 1000; scanf_s("%d…… 题解列表 2024年03月04日 0 点赞 0 评论 135 浏览 评分:0.0
C语言新手-写的有点乱 摘要:参考代码:#include<stdio.h>int fun(int a[],int N,int sum){ int b[N],c[N],flag = 1; for(int z=0;z<N;…… 题解列表 2024年03月04日 0 点赞 0 评论 195 浏览 评分:0.0
C语言-新手-写的太复杂了 摘要:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int Pn(int num){ int k=1; for(int i=1;…… 题解列表 2024年03月04日 0 点赞 0 评论 273 浏览 评分:0.0
编写题解 1454: 蓝桥杯历届试题-蚂蚁感冒(Java) 摘要:写的挺烂,不过能跑完测试用例懒得改了 ```java import java.util.Scanner; public class Main { public static v…… 题解列表 2024年03月04日 0 点赞 0 评论 160 浏览 评分:0.0
3019: 约瑟夫问题 python自带库实现 摘要:解题思路:使用python自带库,collections中的deque,队列实现retate(n)是将队列中的所有元素向右移动n位,如果是负数,则向左移动例如:dq = [1, 2, 3, 4, 5]…… 题解列表 2024年03月04日 0 点赞 0 评论 181 浏览 评分:0.0
编写题解 2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:n=int(input())sum=0for i in range(1,n+1): if i%7!=0 and i%10!=7 and i//10!=7: …… 题解列表 2024年03月04日 0 点赞 0 评论 230 浏览 评分:0.0
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:n=int(input())times=0for i in range (1,n+1): times+=str(i).count('1')print…… 题解列表 2024年03月04日 0 点赞 0 评论 235 浏览 评分:0.0
编写题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:l,r=map(int,input().split())times=0for i in range (l,r+1): times+=str(i).count(…… 题解列表 2024年03月04日 0 点赞 0 评论 216 浏览 评分:0.0
编写题解 2831: 画矩形 摘要:解题思路:注意事项:参考代码:h,w,c,flag=map(str,input().split())h=int(h)w=int(w)flag=int(flag)if flag==1: for i…… 题解列表 2024年03月04日 0 点赞 0 评论 162 浏览 评分:0.0