题解列表

筛选

2854——密码翻译

摘要:分别判断两种情况 做出对应修改参考代码:#include"stdio.h" #include"string.h"  typedef char string[111]; string str; ……

立方和不等式(简单C++)

摘要:解题思路:写一个立法和函数比较好看注意事项:参考代码:#include<iostream> using namespace std; int f(int n) {     int s=0; ……

素数问题(简单C++)

摘要:解题思路:素数只能被自己整除注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n,i,j;    ……

C语言解决本题

摘要:解题思路:直接代入公式计算即可解决注意事项:输出要带两位小数点,所以需要%.2lf,这个地方是需要注意的地方参考代码:#include<stdio.h> int main() {    int ……

自守数问题(C++)

摘要:解题思路:注意事项:int存不下,用long,题目要求两个空格隔开参考代码:using namespace std; #include<iostream> int main() {     c……

自由落体问题(简单C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() {     int n……

蓝桥杯2013年第四届真题-核桃的数量(简单算法java)

摘要:解题思路:题意为三个数求最小公倍数,选取三个数中最大的一个数,让最大的数不断乘(从1~n),判断最大的数乘完以后能不能够整除最初输入的三个数,如果可以就说明这个数是三个数的最小公倍数注意事项:先要找到……

2924: 明明的随机数

摘要:解题思路:注意事项:参考代码://桶排序 #include <stdio.h> int main() {     int n = 0, a = 0, sum = 0, t[1005] = {0……