题解列表
1862: 求两个集合交集(暴力,双指针)
摘要:解题思路:暴力的时间复杂度是n^2,因为这道题的数据规模较小,也可以通过代码实现如下:#include <stdio.h>
#include <stdlib.h>
int gg(const v……
蛮简单的--时间转换
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int time; cin >> time; ……
1760: 字符序列模式识别 (Java代码)
摘要:import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Sca……
套公式就好--两直线交点
摘要:解题思路:注意事项:头文件勿忘,保留两位小数,x,y之间空格参考代码:#include<iostream>#include<iomanip>using namespace std;int main()……
简单易懂,赛瓦维斯特定理--小凯的疑惑
摘要:解题思路:赛瓦维斯特定理,答案=a * b - a - b 注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long ……
1624: 蓝桥杯算法训练VIP-完数
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<math.h>
using namespace std;
int main()
{
float n,f……
优质题解
Hifipsysta-1725题-统计字符(C++代码)频数统计法
摘要:解题思路:
本题有两种做法,第一种方法是:
① 依次获取每个测试用例的第1行中的字母
② 在依次获取的循环内,反复扫描每个测试用例的第2行,记录出现次数
③ 在依次获取的循环内,输出查询的字符……