题解列表

筛选

1014: [编程入门]阶乘求和

摘要:解题思路:定义一个简单函数,思路简单清晰;注意事项:参考代码:#include<stdio.h>int main(){ long int p(int x); int i,n; long int s=0……

活动选择c++

摘要:解题思路:结束时间越早,能安排的活动就越多;注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int begin[100……

三角形题解(动态规划)

摘要:解题思路: DP注意事项:参考代码:import java.util.Scanner;public class 数字塔从上到下所有路径中和最大的路径DP { public static void ma……

Java语言 矩阵对角线求和

摘要:解题思路:注意事项:数组下标从零开始参考代码:Scanner scanner = new Scanner(System.in);       int[][] s = new int[3][3];   ……

看题解学的

摘要:参考代码:#include<stdio.h>#define MAX ((a>b)?((a>c)?a:c):((b>c)?b:c))float FindMax(float a,float b,float……

简洁 !!!

摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main (){         int t;        int y=0,u=1,m=1;         scanf(……

弟弟的作业

摘要:#include<stdio.h> int main() {     int a,b,c,k,count=0;     char op;  //操作符     while (~(k=scan……

成绩评定

摘要:解题思路:#include<stdio.h>int main(){ int score; scanf("%d",&score); if(score>=90) { printf("A\n"); } e……