蓝桥杯算法训练VIP-方格取数(c++代码) 摘要:解题思路:思路见代码注意事项:参考代码:#include<cstdio> #include<algorithm> using namespace std; struct point { …… 题解列表 2022年05月08日 0 点赞 0 评论 616 浏览 评分: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 评论 516 浏览 评分:0.0
信息学奥赛一本通T1255-迷宫问题 ```#include#definexfirst#defineysecondusingnamespacestd;typedefpairpii;constintdx[4]={1,0,-1,0};constintdy[4]={0,-1,0,1};constintN=10;intg[N][N];piipre 题解列表 2022年05月08日 0 点赞 0 评论 710 浏览 评分:9.9
马拦过河卒(c++代码) 摘要:解题思路这道题初始位置是从 0 开始的,这样不是很利于我们解题,所以不如暂且把这题里涉及的坐标统统 +1,那么初始位置就从 (0,0)(0,0) 变成了 (1,1)(1,1)。先考虑如果没有任何马的限…… 题解列表 2022年05月08日 0 点赞 0 评论 1249 浏览 评分:9.2
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 评论 767 浏览 评分:9.9
信息学奥赛一本通T1454-山峰和山谷 ```/*在判断是否是山峰或者山谷时不能用简单的if-else判断,因为可能会有即是山峰又是山谷的情况出现*/#include#definexfirst#defineysecondusingnamespacestd;typedefpairpii;constintN=1010;intg[N][N];bo 题解列表 2022年05月08日 0 点赞 0 评论 901 浏览 评分:9.9
编写题解 2350: 信息学奥赛一本通T1438-灯泡 摘要:#include<iostream> #include<cstdio> #include<cstdlib> #include<string> #include<cstring> #inclu…… 题解列表 2022年05月08日 0 点赞 0 评论 736 浏览 评分:9.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:def yidong(): a = eval(input()) b = list(map(int,input().split())) c = e…… 题解列表 2022年05月08日 0 点赞 0 评论 541 浏览 评分:0.0
编写题解 2351: 信息学奥赛一本通T1439-传送带 摘要:#include<iostream> #include<cstdio> #include<cstdlib> #include<string> #include<cstring> #inclu…… 题解列表 2022年05月08日 0 点赞 0 评论 932 浏览 评分:0.0
编写题解 2347: 信息学奥赛一本通T1435-曲线 摘要:#include<iostream> #include<cstdio> #include<cstdlib> #include<string> #include<cstring> #inclu…… 题解列表 2022年05月08日 0 点赞 0 评论 602 浏览 评分:9.9