题解 1060: 二级C语言-同因查找 摘要:解题思路:既然要求出10至1000之内能同时被2、3、7整除的数,那么就直接求出2*3*7的值并能整除此积的数。参考代码:#include<iostream> using namespace std…… 题解列表 2023年10月09日 0 点赞 0 评论 251 浏览 评分:0.0
排序+遍历 摘要:先对数列进行排序,定义a[1]-a[0]为公差,遍历数列,如果有相邻两个数的差不等于公差输出no 否则输出yes ```cpp #include "iostream" using names…… 题解列表 2023年10月09日 0 点赞 0 评论 326 浏览 评分:10.0
数列有序—二分查找法 摘要:###二分查找 解题思路: #####通过二分找到第一个比m大的数的位置,把m插入进去 1.输入n和m,直到 n 和 m 都为0时结束 2.在一个有序数列里面插入一个数 m 使新的数列仍然有序…… 题解列表 2023年10月08日 0 点赞 0 评论 359 浏览 评分:9.9
题解 1370: SPY 摘要:解题思路:这是一个普通的模拟判定题。在这里,我们把每个人物名字用map存起来方便处理数据。题目中需要我们判断去逮捕哪些可能的间谍,通过3个列表中的人名来进行判定。A列表:到来的人B列表:将要从Y城送来…… 题解列表 2023年10月08日 0 点赞 0 评论 397 浏览 评分:0.0
凯撒密码—字母循环 摘要:####这个题的关键是要把26个大写字母循环起来 解题思路: 题意是把每个字符串的字符向左移五位然后输出新的字符串,根据Ascll表可以知道对字符减5可以得到左移5位的字符,遍历每次输入的字符串对…… 题解列表 2023年10月08日 0 点赞 0 评论 380 浏览 评分:0.0
1865: 换硬币 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int func(int n) {…… 题解列表 2023年10月08日 0 点赞 0 评论 342 浏览 评分:0.0
1864: 数日子 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月08日 0 点赞 0 评论 269 浏览 评分:0.0
1859: 与2无关的数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; bool func(int i); …… 题解列表 2023年10月08日 0 点赞 0 评论 224 浏览 评分:0.0
1856: 最小三个数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; int arr[100]…… 题解列表 2023年10月08日 0 点赞 0 评论 176 浏览 评分:0.0
1855: 输出字符'A'个数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2023年10月08日 0 点赞 0 评论 246 浏览 评分:0.0