题解列表

筛选

1047: [编程入门]报数问题

摘要:解题思路:注意事项:参考代码:#includevoid chag(int *n,int num[]){     int lis[--*n],i;     for(i=0;i<*n-2;i++){ ……

P1001C++排序+素数

摘要:解题思路:就一个排序(直接使用sort即可)和判定素数注意事项:参考代码:#include <iostream>#include <string>#include <algorithm>using n……

P1002(C++)结构体,自定义排序

摘要:解题思路:定义结构体+结合sort排序+自定义类型排序注意事项:两个获得奖金一致时,按输入顺序输出先输入的参考代码:#include <iostream>#include <algorithm>usi……

排队买票(c语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> /* run this program using the console paus……

关于数字的处理与判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   string n;    cin >> n;    in……

编写题解 1951: 求平方和

摘要:解题思路:注意事项:参考代码:a = input()b = a.split(" ")c = (int(b[0]) * int(b[0]) + int(b[1]) * int(b[1]))print(c……

简单便于理解的逻辑——C语言

摘要:解题思路:                 申请一个字符数组,之后用gets接收输入的字符;                撰写函数时输入指针会方便很多,然后写一个循环,不必