题解列表
小白的代码你一定可以看懂,包容易理解
摘要:解题思路:先排序在判断m的奇数或者偶数在利用类似双指针的想法注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int g……
1028: [编程入门]自定义函数求一元二次方程
摘要:```c#include #include int main() { double a,b,c; scanf("%lf%lf%lf",&a,&b,&c); doubl……
充分利用ACS码表减少代码量,简答易懂
摘要:解题思路:充分利用ACS码表减少代码量注意事项:参考代码:#include<iostream>#include<vector>usingnamespace&……
-计算一个整数N的阶乘
摘要:解题思路:注意事项:参考代码:n=int(input())sum=1for i in range(1,n+1): sum=sum*iprint(sum) &nbs……
1049: [编程入门]结构体之时间设计
摘要:```c#include struct Data{ int year; int month; int day;}; int main() { struct……
一目了然- 亲和数用while、for
摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&nb……
考虑质数与非质数两种情况即可
摘要:只能切下质数长度的木段,且1和0直接判断先手的人输,不妨直接设置一个数组a[100010]来表示结果,1.输入n,若n为质数,a[n]=1;2.若n不是质数,我们就需要考虑比n小的质数,如果有……
1051: [编程入门]结构体之成绩统计2
摘要:```c#include struct student{ char id[100]; char name[100]; int a; int b; int c;}; ……