题解列表

筛选

C语言训练-尼科彻斯定理 (Java代码)

摘要:解题思路:先用求和公式  找出规律解出第一个值  最后通过循环按格式输出注意事项:参考代码import java.util.Scanner;public class E1127 {   public ……

明明的随机数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int N,k,*V; int ……

母牛的故事 (C语言代码)

摘要:解题思路:利用数组叠加注意事项:第8年牛的数量和第九年牛的数量要搞清楚参考代码:#include<stdio.h>#include<string.h>#define N 55int main(){  ……

字符逆序 (C++代码)

摘要:解题思路:algorithm头文件注意事项:参考代码:#include <iostream>#include <algorithm>#include <string> using namespace ……

日期排序 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> using namespace std; cons……

人民币问题 (C语言代码)

摘要:解题思路:默认各个面额各有一张然后逐次循环注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n,i=0,j=0,five=1,……