编写题解 1148: C语言训练-计算1977!*(人生苦短,我用python) 摘要:第一种方法:使用python的math库中的factorial函数,这个函数可以直接求一个数的阶乘(代码最少)import math print(math.factorial(1977))第二种方法…… 题解列表 2022年04月21日 0 点赞 0 评论 449 浏览 评分:6.0
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:题目让输入3个数,输出第2个输入的数注意事项:不是输出第2大的数参考代码:#include<iostream>using namespace std;int main(){ int a…… 题解列表 2022年04月27日 0 点赞 0 评论 957 浏览 评分:6.0
1831: 蓝桥杯2015年第六届真题-机器人繁殖 摘要:解题思路:注意事项:参考代码:n,s=map(int,input().split()) def f(n,x): ls=[x] for i in range(n): …… 题解列表 2022年04月29日 0 点赞 0 评论 396 浏览 评分:6.0
三行代码解决 摘要:解题思路:扩展欧几里得算法参考代码:#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; …… 题解列表 2022年05月06日 0 点赞 0 评论 303 浏览 评分:6.0
排序 题解(c++)(sort) 摘要:解题思路:直接用sort排序。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a[1005];int main(){ w…… 题解列表 2022年05月07日 0 点赞 0 评论 370 浏览 评分:6.0
保留字母(C++代码) 摘要:解题思路:只需要判断是否位英文字母来进行输出就可以很方便的完成这道题;注意事项:我不知道有没有空格,但用getline会更保险;要判断大小写;参考代码:#include<bits/stdc++.h>/…… 题解列表 2022年05月07日 0 点赞 0 评论 253 浏览 评分:6.0
密码破译 题解(c++超简单) 摘要:解题思路:用ASCII表的位置来转换。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>…… 题解列表 2022年05月08日 0 点赞 0 评论 660 浏览 评分:6.0
编写题解 1081: Infinite Dictionaries 摘要:#include<vector> #include<map> #include<string> #include<cstring> #include<cstdio> #include<c…… 题解列表 2022年05月08日 0 点赞 0 评论 395 浏览 评分:6.0
信息学奥赛一本通T1252-走迷宫 摘要:``` #include #define x first #define y second using namespace std; typedef pair pii; …… 题解列表 2022年05月08日 0 点赞 0 评论 392 浏览 评分:6.0
积木画(c++) 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e7+5; const int MOD=1e9…… 题解列表 2022年05月09日 0 点赞 0 评论 1441 浏览 评分:6.0