随笔分类 -  C++ / C++题库刷题

摘要:#include <bits/stdc++.h> using namespace std; int gcd(int a,int b) { if(b==0){ return a; }else{ return gcd(b,a%b); } } int main() { string n; getline( 阅读全文
posted @ 2025-03-02 14:46 王一行(小号) 阅读(1) 评论(0) 推荐(0) 编辑
摘要:#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string d[n+5],e[n+5]; double b[n+5],c[n+5]; long long a[n+5]; for(int i = 1; 阅读全文
posted @ 2025-01-18 21:48 王一行(小号) 阅读(1) 评论(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 王一行(小号) 阅读(1) 评论(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 王一行(小号) 阅读(3) 评论(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 王一行(小号) 阅读(5) 评论(0) 推荐(0) 编辑