题解列表

筛选

1029题解简单易懂

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int fun(int m){ int y; y=(int)sqrt(m); for(int i=2……

定义动态二维数组

摘要:解题思路:遍历找到最小值注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){    int n;int min,a,b;    while(……

开关灯 (Java)

摘要:import java.util.Scanner; public class Main {     public static void main(String[] args) {   ……

一种超简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,sum=0,b,t,i,m; int a[N]; scanf("%d",&N); for( i=0;……

Hash映射求亲密数

摘要:# 哈希映射 ~~~ c++ int main() { int i ; int j ; int count = 0; int cmp ; int Hash[3001]{ 0 ……

1190: 剔除相关数

摘要:```cpp #include #include #include #include using namespace std; mapma; setse; struct str {……