题解列表

筛选

c语言代码解决问题

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[1001];    gets(str);    st……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void CompactIntegers(int a[],int k,int n){    int i;    for (i = k; ……

普通的写法

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =10010;int a[N];……

枚举加分类

摘要:解题思路:结果只可能是4、6、8中的一个值。def func(x):    sign=8    for a in (0,1):        for b in (2,3):            fo……

谁考了第K名

摘要:解题思路:注意事项:参考代码:public class Main {     public static void main(String[] args) {         Scanner sc =……

奇数单增序列

摘要:解题思路:注意事项:参考代码:public class Main {    public static void main(String[] args) {        Scanner sc = n……