multi_eyes
multi_eyes
全部文章
分类
归档
标签
去牛客网
登录
/
注册
multi_eyes的博客
全部文章
(共8篇)
题解 | 最后k个元素
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; vector<int>a; // write your code here...... cin>>n>>k; ...
2025-07-24
0
24
题解 | 重载小于号
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2025-07-24
0
26
题解 | 迭代器遍历容器
#include <iostream> #include <vector> using namespace std; // write your code here...... int main() { vector<int>v; int a...
2025-07-22
0
27
题解 | 去除字符串中重复的字符
#include <iostream> // write your code here...... #include <set> using namespace std; int main() { char str[100] = { 0 }; cin.ge...
2025-07-22
0
32
题解 | 比较字符串大小
#include <iostream> using namespace std; int mystrcmp(const char* src, const char* dst); int main() { char s1[100] = { 0 }; char s2[1...
2025-07-07
0
34
题解 | 数组元素处理
#include <iostream> using namespace std; void func(int* p, int n); int main() { int arr[6] = { 0 }; for (int i = 0; i < 6; i++) {...
2025-07-07
0
25
题解 | 判断一个数是不是质数
#include <iostream> using namespace std; int main() { // write your code here...... int a; cin >> a; int sum = 0; f...
2025-07-04
0
26
题解 | 规律数列求和
#include <iostream> using namespace std; #include <cmath> int main() { long long sum = 0; long long num = 0; // write your code her...
2025-07-04
0
26