题解列表
1784————矩阵的对角线之和
摘要: import java.util.Scanner;
public class Main {
public static void main(String[] ……
dp区间问题~~~~
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n,a[1001],dp[1001][1001],sum[1001];int main……
C语言训练-谁家孩子跑最慢*
摘要:```cpp
#include
using namespace std;
int main(){
int a,b,c,d,i,j,k;
for(a=1;ad){
if……
1127基础解法(Python)
摘要:解题思路:可以用数学原理,也可以当做找规律注意事项:参考代码:n = int(input())cubic = pow(n, 3)square = pow(n, 2)if square % 2 == 0……
递归写法,新手尝试,欢迎优化
摘要:#include<stdio.h>
#include<math.h>
int Fun(int x)
{
while (x > 0)
{
return 2 * ((int)pow(1……
结构体之时间设计C语言
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct date{ int year; int month; int d……
递归写法,分子分母拆分成2组斐波那锲数列
摘要:#include<stdio.h>
int Fun(int n)
{
if (n==1)
{
return 1;
}
if (n==2)
{
return 2;
……