九宫重排【Python】【BFS+降维+hash判重】 摘要:```python from collections import deque from typing import List direct = [3, -3, -1, 1] def chec…… 题解列表 2022年03月27日 0 点赞 0 评论 1019 浏览 评分:9.9
利用getline()和istringstream()解决字符串读入空格问题 摘要: #include #include //STL中的set #include using namespace std; int main() …… 题解列表 2022年03月27日 0 点赞 0 评论 635 浏览 评分:9.9
编写题解 1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>#include<math.h>using namespace std;int main(){ …… 题解列表 2022年03月27日 0 点赞 0 评论 396 浏览 评分:0.0
编写题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>using namespace std;int main(){ int n; int …… 题解列表 2022年03月27日 0 点赞 0 评论 339 浏览 评分:0.0
编写题解 1150: C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:注意事项:参考代码:#include #include using namespace std; int main() { int n; double sum =…… 题解列表 2022年03月27日 0 点赞 0 评论 788 浏览 评分:9.9
编写题解 1149: C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int sum =0; cin>>n;…… 题解列表 2022年03月27日 0 点赞 0 评论 398 浏览 评分:0.0
数字的处理与判断(C语言) 摘要:解题思路:先尝试把每一位数分离出来,剩下就容易了注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,n,place; scanf("%d",&n)…… 题解列表 2022年03月27日 0 点赞 0 评论 521 浏览 评分:0.0
有手就行之Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=2,i,s=2; scanf("%d",&n); for(i=1; i<n; i++) { …… 题解列表 2022年03月27日 0 点赞 1 评论 583 浏览 评分:9.9
利用扩展的列表,集中处理 摘要:解题思路:通过列表扩展,利用队列中只有一个断号和重复的,且整个队列是连续的特性解决注意事项:没有,这个方法很棒参考代码:# 错误票据N=int(input())data=[]for i in rang…… 题解列表 2022年03月27日 0 点赞 0 评论 353 浏览 评分:9.9
绝对值排序(c语言代码,会排序的都会写,不会输出超限) 摘要:解题思路:按照绝对值大小排序注意事项:避免输出超限,以文件结尾符结尾,数组清0参考代码:#include#include#includeint main(){ int n; int i,x…… 题解列表 2022年03月27日 0 点赞 0 评论 675 浏览 评分:6.7