题解 1370: SPY 摘要:解题思路:这是一个普通的模拟判定题。在这里,我们把每个人物名字用map存起来方便处理数据。题目中需要我们判断去逮捕哪些可能的间谍,通过3个列表中的人名来进行判定。A列表:到来的人B列表:将要从Y城送来…… 题解列表 2023年10月08日 0 点赞 0 评论 436 浏览 评分:0.0
凯撒密码—字母循环 摘要:####这个题的关键是要把26个大写字母循环起来 解题思路: 题意是把每个字符串的字符向左移五位然后输出新的字符串,根据Ascll表可以知道对字符减5可以得到左移5位的字符,遍历每次输入的字符串对…… 题解列表 2023年10月08日 0 点赞 0 评论 437 浏览 评分:0.0
1865: 换硬币 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int func(int n) {…… 题解列表 2023年10月08日 0 点赞 0 评论 400 浏览 评分:0.0
1864: 数日子 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月08日 0 点赞 0 评论 319 浏览 评分:0.0
1859: 与2无关的数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; bool func(int i); …… 题解列表 2023年10月08日 0 点赞 0 评论 285 浏览 评分:0.0
1856: 最小三个数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; int arr[100]…… 题解列表 2023年10月08日 0 点赞 0 评论 221 浏览 评分:0.0
1855: 输出字符'A'个数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2023年10月08日 0 点赞 0 评论 295 浏览 评分:0.0
C++ 字符串比较(简洁 ——易懂) 摘要:# //利用strcmp函数 ## //用法:int n = strcmp(a,b); ### //strcmp函数说是返回的是1,-1,0 ,它不是真的是1,-1,0; ### //只是表…… 题解列表 2023年10月08日 0 点赞 0 评论 550 浏览 评分:9.9
优质题解 题解 1375: NEW RDSP MODE I 摘要:解题思路: 这题是一个智力题。 首先我们数组下标从1开始计算(为了方便理解),第一个数字为a[1] 现在我们看n=500,m=1,x=500的情形(我们把数组所有元素都考虑到,用一个…… 题解列表 2023年10月07日 0 点赞 1 评论 712 浏览 评分:9.9
优质题解 [编程入门]第一个HelloWorld程序(c++代码) 摘要: 哈柔,相信你点开这个题解纯粹是因为比较清闲吧【偷笑R】,毕竟这是每个初学者都要学习的第一个题目嘛。 好了话不多说,我们开始“***正经***”内容。 首先就是“cout”输出和“end…… 题解列表 2023年10月07日 2 点赞 1 评论 2931 浏览 评分:9.4