勋谦
勋谦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
勋谦的博客
全部文章
(共77篇)
题解 | #查找#三列查找
#include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 10; const int raxn = 1e6; int n,m; int a[maxn]; bool hashTable[raxn]; ...
2024-04-25
0
161
题解 | #查找#系统自带的lower/upper_boun
#include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 10; int n,m; int a[maxn]; int main(){ cin >> n; for(int i =...
2024-04-25
0
175
题解 | #查找#二分查找
#include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 10; int n,m; int a[maxn]; bool BinarySearch(int n,int x){ int l = 0,r...
2024-04-25
0
132
题解 | #查找#线性
#include <iostream> using namespace std; const int maxn = 1000 + 10; int n,m; int arr[maxn]; bool LinearFind(int n,int x){ for(int i = 0;i ...
2024-04-25
0
133
题解 | #Grading#
#include <iostream> #include <math.h> using namespace std; int main(){ double p,t,g1,g2,g3,gj,score; cin >> p >> t >>...
2024-04-24
0
165
题解 | #xxx定律#
#include <iostream> using namespace std; int main(){ int n; while(cin >> n){ int sum = 0; while(n != 1){ if(n % 2 == 0){ ...
2024-04-24
0
142
题解 | #手机键盘#
#include <iostream> #include <cstdio> using namespace std; int keytab[26] = { 1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,4,1,2,3,1,2,3,4 }; i...
2024-04-24
0
175
题解 | #剩下的树#
#include <iostream> using namespace std; const int maxn = 10001; bool isMove[maxn]; int main(){ int L,m,count; cin >> L >> m...
2024-04-24
0
129
题解 | #Day of Week#
#include <iostream> #include <string.h> using namespace std; int daytab[2][13] = { { 0,31,28,31,30,31,30,31,31,30,31,30,31 }, { 0,31,...
2024-04-23
0
148
题解 | #日期类#
#include <iostream> using namespace std; int daytab[2][13] = { { 0,31,28,31,30,31,30,31,31,30,31,30,31 }, { 0,31,29,31,30,31,30,31,31,30,31...
2024-04-23
0
136
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页