信息学奥赛一本通T1454-山峰和山谷 摘要:``` /* 在判断是否是山峰或者山谷时不能用简单的if-else判断,因为可能会有即是山峰又是山谷的情况出现 */ #include #define x first #defi…… 题解列表 2022年05月08日 0 点赞 0 评论 738 浏览 评分:9.9
A+B for Input-Output Practice (I)(c++代码) 摘要:解题思路:换个英文版你就不会了???注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ while(…… 题解列表 2022年05月08日 0 点赞 0 评论 621 浏览 评分:9.9
马拦过河卒(c++代码) 摘要:解题思路这道题初始位置是从 0 开始的,这样不是很利于我们解题,所以不如暂且把这题里涉及的坐标统统 +1,那么初始位置就从 (0,0)(0,0) 变成了 (1,1)(1,1)。先考虑如果没有任何马的限…… 题解列表 2022年05月08日 0 点赞 0 评论 1079 浏览 评分:9.2
信息学奥赛一本通T1255-迷宫问题 摘要:``` #include #define x first #define y second using namespace std; typedef pair pii; …… 题解列表 2022年05月08日 0 点赞 0 评论 576 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a = 0b = 0c = 0d = 0e = input()for i in e: if i.isalpha(): a+=1 elif i.i…… 题解列表 2022年05月08日 0 点赞 0 评论 381 浏览 评分:0.0
蓝桥杯算法训练VIP-方格取数(c++代码) 摘要:解题思路:思路见代码注意事项:参考代码:#include<cstdio> #include<algorithm> using namespace std; struct point { …… 题解列表 2022年05月08日 0 点赞 0 评论 458 浏览 评分:9.9
编写题解 1031: [编程入门]自定义函数之字符串反转(利用切片解决) 摘要:解题思路:注意事项:参考代码:def main(): a = input() print(a[::-1])main()…… 题解列表 2022年05月08日 0 点赞 0 评论 454 浏览 评分:0.0
信息学奥赛一本通T1252-走迷宫 摘要:``` #include #define x first #define y second using namespace std; typedef pair pii; …… 题解列表 2022年05月08日 0 点赞 0 评论 551 浏览 评分:6.0
while循环求解 摘要:解题思路:求每一位数的3次方的和注意事项:由于输入的数被/10了3次,所有最后在比对的时候用的是一开始赋值的b参考代码:#include "stdio.h"#include "math.h"int m…… 题解列表 2022年05月08日 0 点赞 0 评论 438 浏览 评分:0.0
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; int main () { int cow[56] = {0,1,2,3,…… 题解列表 2022年05月08日 0 点赞 0 评论 325 浏览 评分:0.0