题解列表

筛选

以后可以回头看看

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

链表之报数问题 python解法

摘要:解题思路:注意事项:参考代码:n = int(input())ls = [0] * nj = 1; p = 0for i in range(n-1):#让9个人出局    while j < 3:  ……

有规律的数列求和

摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num……

去除空格c语言解法

摘要:解题思路:把空格的那个位置置0,输出的时候输出非0即可注意事项:输入的时候用gets()参考代码:#include <stdio.h>#include <string.h> int main(){ch……

模拟计算器

摘要:解题思路:使用switch而不是if注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){     int a,b;     ……

简单A+B,时间相加,C实现

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); while (n--)//控制多行输出 { int a[6];……