题解列表

筛选

又水水水水水。。。了一题

摘要:解题思路:加法最快,一直加到n/4,又1=4/4,2=(4+4)/4,3=4-4/4,所以模余一再加一,余二余三再加二注意事项:参考代码:#include<stdio.h>int main(){   ……

1019: [编程入门]自由下落的距离计算

摘要:解题思路:把球落下和上升看做一个反弹周期,每个反弹周期经过的距离等于每个反弹周期时反弹高度*3参考代码:#includeint main(){    double m,n,sum=0;    scan……

构造数字排序(C++)

摘要:解题思路:使用数字排序 控制格式输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){        int a,b,c,……

Minesweeper(c 语言)简单明了

摘要:解题思路:注意事项:参考代码:#include<stdio.h>char sweep(char a[][100],int n,int m){    int i,j,k=0;     char coun……

2131-01背包-动态规划

摘要:#include<stdio.h> int a[31][201]; int max(int a,int b) { return a>b?a:b; } void beibao(int M,……