上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: #include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string a[n+5],b[n+5],d[n+5]; long long c[n+5]; string b1[n+5],b2[n+5]; for(i 阅读全文
posted @ 2025-01-18 21:29 王一行(小号) 阅读(7) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int f(int x){ int ant = 0; while(x){ x /= 10; ant++; } return ant; } int main() { int n; cin>>n; int a[n 阅读全文
posted @ 2025-01-18 21:25 王一行(小号) 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; string n; string a[] = {"","one","two","three","four","five","six","seven","eight","nine","ten","eleven" 阅读全文
posted @ 2025-01-04 21:53 王一行(小号) 阅读(9) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2024-12-28 09:58 王一行(小号) 阅读(0) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int l,n,m; cin>>l>>n>>m; int a[n+5]; for(int i = 1;i<=n;i++){ cin>>a[i]; } long left = 1,righ 阅读全文
posted @ 2024-12-27 19:32 王一行(小号) 阅读(9) 评论(0) 推荐(0)
摘要: 当二分查找的区间是一个实数域时,称之为实数二分。实数二分的算法思想没有变化,但时因为实数和整数不同,整数是离散的,可以逐一枚举,区间中除了首尾边界外,每个整数都有一个前驱和后驱;实数是连续的,所以实现方式和整数二分有所不同。常见的形式是通过确定好精度prec(le-6,le-8等),以left+pr 阅读全文
posted @ 2024-12-27 19:06 王一行(小号) 阅读(67) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n,k; cin>>n>>k; int a[n+5]; for(int i = 1;i<=n;i++){ cin>>a[i]; } int l = 1,r = 100000000 阅读全文
posted @ 2024-12-21 09:37 王一行(小号) 阅读(15) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ int n; cin>>n; int x[n+5]; for(int i = 1;i<=n;i++){ cin>>x[i]; } for(int i = 1;i<=n;i++){ if(x[i] 阅读全文
posted @ 2024-12-14 08:26 王一行(小号) 阅读(16) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main() { long n,sum = 0;//次数 总钱数 cin>>n;//输入 long x,m,s;//方式 价格 时间 vector<long> m1,s1;//存储地铁的优惠券 boo 阅读全文
posted @ 2024-12-08 10:23 王一行(小号) 阅读(26) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; long a[200001]; long n,c,ans; int main(){ cin>>n>>c; for(int i = 1;i<=n;i++){ cin>>a[i]; } sort(a+1,a+n+1 阅读全文
posted @ 2024-11-30 16:02 王一行(小号) 阅读(29) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页