[STL训练]2010辽宁省决赛 SPY 摘要:```cpp #include #include #include #include using namespace std; void myprint(string val)//用来给f…… 题解列表 2022年02月03日 0 点赞 0 评论 591 浏览 评分:9.9
给个相对详细的 摘要:解题思路:一个进站出站的操作案例注意事项:1.出栈不是要等所有都进栈后才能出栈,比如进栈4321,4进栈后不等3进栈就出栈,这样虽然4先进,但也是先出,就可以形成4321的出栈顺序。我们在编写这道题时…… 题解列表 2022年02月03日 0 点赞 0 评论 585 浏览 评分:9.9
大白话题解 摘要:解题思路:1、使用正常遍历找出素数,肯定超时2、交为常用快捷的素数查找方式为:埃氏筛选(可以自行百度),所以先使用该方法将2~~sqrt(R)中的素数找出,需要建立一个0-sqrt(R)的数组3、每找…… 题解列表 2022年02月03日 0 点赞 0 评论 655 浏览 评分:9.9
汽水瓶C++代码,没有题解 摘要:####C++代码: ```c++ #include using namespace std; int main() { int n=1; while(n) …… 题解列表 2022年02月03日 0 点赞 0 评论 403 浏览 评分:0.0
Hifipsysta-1895-蓝桥杯算法提高VIP-队列操作(C++代码)基于STL的队列实现 摘要:注意事项: 队列为空后要结束循环。 ```cpp #include #include using namespace std; int main(){ queue q; …… 题解列表 2022年02月03日 0 点赞 0 评论 464 浏览 评分:9.9
报数问题(C++)(STL vector求解) 摘要:解题思路:个人认为解这种题的思路就是首先定义一个不定长数组vector,通过输入的总人数,利用for循环用vector存储每个人的编号(1~n)。然后接下来的while循环就是模拟这个报数的过程,题意…… 题解列表 2022年02月03日 0 点赞 2 评论 774 浏览 评分:9.9
[编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; int main(){ int n,k,i,m; cin>>n; int a[n…… 题解列表 2022年02月03日 0 点赞 0 评论 360 浏览 评分:0.0
优质题解 Hifipsysta-1096-蛇行矩阵(C++代码)超详细的双递归数列解题步骤 摘要:### 解题思路: #### 1. 总结出每一行的规律 ##### 首先看第0行: $$a_0=1$$ $$a_1=a_0+2=1+2=3$$ $$a_2=a_1+3=3+3=6$$ $$…… 题解列表 2022年02月03日 0 点赞 5 评论 1580 浏览 评分:8.9
Hifipsysta-1139题-C语言训练-求素数问题(C++代码) 摘要:```cpp #include using namespace std; bool is_prime(int n){ for(int i=2;i>n; for(int…… 题解列表 2022年02月03日 0 点赞 0 评论 380 浏览 评分:0.0
通过取余,循环来实现各种不同输入情况的对应密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string s; cin…… 题解列表 2022年02月02日 0 点赞 0 评论 360 浏览 评分:0.0