Puzzlemaster_Khadgar
Puzzlemaster_Khadgar
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Puzzlemaster_Khadgar的博客
全部文章
(共23篇)
题解 | 动态整数集最近值提取|注意x超出集合范围的情况
#include<bits/stdc++.h> using namespace std; set<int> s; int main(){ int n; cin>>n; while(n--){ int op,x; ...
2025-08-16
0
27
题解 | 参议院投票
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求出最终获胜帮派的名称 * @param s string字符串 * @return strin...
2025-08-15
0
22
题解 | 牛牛与后缀表达式
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 给定一个后缀表达式,返回它的结果 * @param str string字符串 * @retur...
2025-08-12
0
19
题解 | 括号配对问题|非栈方法|c++
#include<bits/stdc++.h> using namespace std; vector<char> S; int main() { string str; cin >> str; for (int i = 0; i <...
2025-08-11
0
17
题解 | 两直线交点|斜截式|注意考虑斜率不存在的情况
#include<bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = d...
2025-08-11
0
22
题解 | 点到直线距离|向量投影+勾股定理
#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = ...
2025-08-11
0
23
题解 | 三角形面积|海伦公式
#include <bits/stdc++.h> using namespace std; struct point { double x, y; point(double A, double B) { x = A, y = B; } p...
2025-08-11
0
30
反思|题解 | 牛牛的考试
#include<bits/stdc++.h> using namespace std; string choice[200]; int main(){ int number,ex; cin>>number; bool Maxb,Minb,None; ...
2025-08-10
0
24
题解 | 凯撒加密 先用int而不是char,防ascii溢出
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; string s; cin>>n>>s; for(int i=0;i<s.size();i++...
2025-08-08
0
21
题解 | 添加逗号 熬夜熬出来的神秘代码
#include<bits/stdc++.h> using namespace std; int main(){ string N; string a=""; cin>>N; int t=-1; for(int i=...
2025-08-08
0
23
首页
上一页
1
2
3
下一页
末页