题解列表
去掉余数为2的数即可
摘要:关键在于,如何判断某个数是不是平方差
```c++
#include
using namespace std;
bool function(int x) {
bool res =……
自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n = 0; int qian = 1000; int hou = 1000; scanf_s("%d……
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;……
C语言-新手-写的太复杂了
摘要:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int Pn(int num){ int k=1; for(int i=1;……
编写题解 1454: 蓝桥杯历届试题-蚂蚁感冒(Java)
摘要:写的挺烂,不过能跑完测试用例懒得改了
```java
import java.util.Scanner;
public class Main {
public static v……
3019: 约瑟夫问题 python自带库实现
摘要:解题思路:使用python自带库,collections中的deque,队列实现retate(n)是将队列中的所有元素向右移动n位,如果是负数,则向左移动例如:dq = [1, 2, 3, 4, 5]……
编写题解 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: ……
编写题解 2829: 数1的个数
摘要:解题思路:注意事项:参考代码:n=int(input())times=0for i in range (1,n+1): times+=str(i).count('1')print……
编写题解 2830: 数字统计
摘要:解题思路:注意事项:参考代码:l,r=map(int,input().split())times=0for i in range (l,r+1): times+=str(i).count(……