题解列表
最低通行费 (数字三角形模型dp)
摘要: 二选一:我也不知道为什么限制为什么不同。
方法一:
#include
using namespace std;
const int N=110;
i……
c语言简单数组解报数问题
摘要:解题思路:注意事项:参考代码:#includeint main(){ int arr[201]; int n,i,j; scanf ("%d",&n); for (i=0;i<n;i++) //……
C语言训练-8除不尽的数
摘要:```cpp
#include
using namespace std;
int main()
{
cout……
哥德巴赫猜想做题心得
摘要:解题思路:对称求和以及对素数的判断注意事项:这里我们需要理解题目的目的-输入n是偶数,这使得我们的循环是对称的(既(2-n)这个区间) 所以头尾相加可求得n 此时对题目的理解转变成判断首位数字是否同时……
The 3n + 1 problem,goto真好用!
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
int main(){
// 定义变量a, b, c和数组d,l用……
1049: [编程入门]结构体之时间设计
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
struct today getstruct(void);
void output(struct today x);
struc……
简单易懂while循环就可以完成
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long int a,n,Tom; while(scanf("%ld",&n)!=EOF) { ……