python--study||O.o 摘要:参考代码:arr = [[0] * 9 for _ in range(9)] temp = [[0] * 9 for _ in range(9)]#辅助列表,接收变化后的数据 dx = (-1,0…… 题解列表 2024年04月16日 0 点赞 0 评论 256 浏览 评分:0.0
2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年04月16日 0 点赞 0 评论 164 浏览 评分:0.0
2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年04月16日 0 点赞 0 评论 160 浏览 评分:0.0
python--study||O.o 摘要:参考代码:from copy import deepcopy dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def judge(x, y): fo…… 题解列表 2024年04月16日 0 点赞 0 评论 251 浏览 评分:0.0
画矩形普通思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n; char c; scanf("%d %d %c %d",&x,&y,&c…… 题解列表 2024年04月16日 0 点赞 0 评论 127 浏览 评分:0.0
虽然能通过不过我感觉输入一些数答案不是质数!!!例如输入50会输出25!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; scanf("%d",&n); for(i=2;i<n;i++) …… 题解列表 2024年04月16日 0 点赞 0 评论 145 浏览 评分:0.0
有点小难,但不多(自信) 摘要:思路:代码:#include <stdio.h> int main(void) { float C,F; scanf("%f", &F); //用来输出实数,…… 题解列表 2024年04月16日 0 点赞 0 评论 481 浏览 评分:0.0
python--study||O.o 摘要:参考代码:#每个草丛只能是1个'#'或2个'#' dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def f(x, y): …… 题解列表 2024年04月17日 0 点赞 0 评论 207 浏览 评分:0.0
辗转相除法 摘要:解题思路: 先计算最大公约数,再计算最小公倍数,然后验证是否准确注意事项: 无参考代码:#include <stdio.h>//辗转相除法int main(void){ int in…… 题解列表 2024年04月17日 0 点赞 0 评论 207 浏览 评分:0.0
【编程入门】密码破译 摘要:解题思路:破译之后的密码是在为破译的密码在ASCII的值上加4注意事项:if(a[i]=='\n')break;要注意添加这一段程序,就可以在输入回车之后,跳出遍历数组a的循环参考代码…… 题解列表 2024年04月17日 1 点赞 0 评论 468 浏览 评分:0.0