题解列表

筛选

收费(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     double x,s;     scanf("%lf",&x);     if(x<=20)     {……

新手都能看懂的链表合并

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

编写题解 2917: 奇数单增序列

摘要:解题思路://给定一个长度为N(不大于500)的正整数序列,请将其中的所有奇数取出,并按升序输出。 #include <stdio.h> void sort(int arr[], int sz);……

判断闰年(c语言)

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

判断闰年(c语言)

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

必过码可带走短码

摘要:解题思路:原题链接:汽水瓶解题思路:根据老板可以借水,可以变相理解为使用2个空瓶和老板换一瓶水,代码改写为参考代码:while 1:    t=int(input())    if t == 0:  ……

#用集合来排序

摘要:解题思路:注意事项:参考代码:package Dotcpp;import java.util.ArrayList;import java.util.Collections;import java.ut……

#用集合来排序

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import java.util.ArrayList;import java.util.Collections;impo……

数字整除(python代码)

摘要:def judge(x):     c = len(x)     x = list(x)     e = int(x[c-1])     del(x[c-1])     x = &#39;&

题目 1511: 蓝桥杯算法提高VIP-复数求和

摘要:解题思路:从键盘读入n个复数(实部和虚部都为整数)用链表存储,遍历链表求出n个复数的和并输出。注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef ……