上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 1.单方移动 #include <iostream> #include <windows.h> #include <conio.h> using namespace std; int main(){ HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE); C 阅读全文
posted @ 2024-04-13 15:56 王一行(小号) 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n+5]; for(int i = 1;i<=n;i++){ cin>>a[i]; } int i = 2,x; int sum = 0; w 阅读全文
posted @ 2024-04-10 20:45 王一行(小号) 阅读(9) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; bool f(int x){ for(int ant = 2;ant*ant<=x;ant++){ if(x%ant==0){ return false; } } return true; } int main(){ 阅读全文
posted @ 2024-04-08 21:07 王一行(小号) 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n+5]; for(int i = 1;i<=n;i++){ cin>>a[i]; } int j; for(int i = 2;i<=n;i 阅读全文
posted @ 2024-04-05 09:43 王一行(小号) 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n+5]; for(int i = 0;i<n;i++){ cin>>a[i]; } int j1; for(int i = 0;i<n;i+ 阅读全文
posted @ 2024-04-05 08:55 王一行(小号) 阅读(8) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ int n; cin>>n; int a[n+5]; for(int i = 0;i<n;i++){ cin>>a[i]; } for(int i = 0;i<n-1;i++){ for(int 阅读全文
posted @ 2024-04-05 08:54 王一行(小号) 阅读(8) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; void ksort(int *a,int l,int r){ int mid = a[(l+r)/2]; int i = l,j = r; do{ while(a[i]<mid){ i++; } while 阅读全文
posted @ 2024-03-26 21:47 王一行(小号) 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n,m; string x; cin>>n>>x>>m; string ant = to_string(stoi(x,0,n)); long i = 0,j = stoi(an 阅读全文
posted @ 2024-03-20 19:49 王一行(小号) 阅读(17) 评论(0) 推荐(0)
摘要: #include <iostream> #include <fstream> #include <map> using namespace std; struct book{ string type1; string bookname; float money; int zt = 1; string 阅读全文
posted @ 2024-03-16 09:46 王一行(小号) 阅读(46) 评论(0) 推荐(0)
摘要: 1.三角形 #include <iostream> using namespace std; int main() { int t; cin>>t; int n = 65; for(int i = 1;i<=t;i++){ for(int j = 1;j<=t-i;j++){ cout<<" "; 阅读全文
posted @ 2024-03-15 20:02 王一行(小号) 阅读(39) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页