题解列表

筛选

题解(C语言)

摘要:```c #include #include #include typedef struct { int data; // 存储符合条件的数字 int sig……

1190: 剔除相关数

摘要:核心:就挺难说的,暴力求解吧代码:def func(l):     c = []     l1 = [0] * len(l)     res = []     for i in range(l……

2880: 计算鞍点

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100][100],n,sum=0;int main(){……

没什么好说的

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() {    int a,n,b,c;    scanf("%u %d",&a,&n);    b=a>>n;    ……

没什么好说的

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() {    int i;    scanf("%d",&i);    i=(i>>4)&(~(~0<<4));   ……

石头剪刀布

摘要:解题思路:小A和小B的出拳是有周期性的。i % A 和 i % B 的作用是计算当前轮次 i 所对应的出拳规律的位置。当i达到或超过 A 或 B 时,取余操作会使其回到0。例如:如果 i 为 3,而 ……

编写题解 2945: 素数对

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int s(int n){ if(n==1) return 0; for(int ……

1796: 蛇形填数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int j;    int a[100][100] ……

2897: 神奇的幻方

摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> using namespace std; ……