求车速(超级简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int i; for(i=95860;…… 题解列表 2022年10月28日 1 点赞 0 评论 476 浏览 评分:9.9
百钱百鸡问题(超级简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int i,j,k; for(i=0;…… 题解列表 2022年10月28日 0 点赞 0 评论 340 浏览 评分:9.9
八皇后易懂(回溯法) 摘要:题目描述:n皇后问题是指将 n 个皇后放在 n×n 的国际象棋棋盘上,使得皇后不能相互攻击到,即任意两个皇后都不能处于同一行、同一列或同一斜线上。现在给定整数 n,请你输出所有的满足条件的棋子摆法。输…… 题解列表 2022年10月28日 0 点赞 0 评论 623 浏览 评分:9.9
编写题解 2850: 输出亲朋字符串 摘要:解题思路:设计两个移动指针count1,count2注意事项:参考代码:str=input() ls=[] #初始化空列表 count1=0 #设计两个相邻指针并初始化 count2=1 wh…… 题解列表 2022年10月28日 0 点赞 1 评论 653 浏览 评分:9.9
立方和不等式(简单C++) 摘要:解题思路:写一个立法和函数比较好看注意事项:参考代码:#include<iostream> using namespace std; int f(int n) { int s=0; …… 题解列表 2022年10月28日 0 点赞 0 评论 642 浏览 评分:9.9
素数问题(简单C++) 摘要:解题思路:素数只能被自己整除注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,j; …… 题解列表 2022年10月28日 0 点赞 0 评论 343 浏览 评分:9.9
自守数问题(C++) 摘要:解题思路:注意事项:int存不下,用long,题目要求两个空格隔开参考代码:using namespace std; #include<iostream> int main() { c…… 题解列表 2022年10月28日 1 点赞 0 评论 411 浏览 评分:9.9
自由落体问题(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int n…… 题解列表 2022年10月28日 0 点赞 0 评论 422 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量(简单算法java) 摘要:解题思路:题意为三个数求最小公倍数,选取三个数中最大的一个数,让最大的数不断乘(从1~n),判断最大的数乘完以后能不能够整除最初输入的三个数,如果可以就说明这个数是三个数的最小公倍数注意事项:先要找到…… 题解列表 2022年10月28日 0 点赞 0 评论 314 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int letter=0,number=0,space=0,other=0;…… 题解列表 2022年10月28日 0 点赞 0 评论 278 浏览 评分:9.9