摘要: 点击查看代码 #include<stdio.h> double g,j,ga; int ans; int main(){ scanf("%lf",&g);scanf("%lf",&j); ga = g; ans = 1; while(ga > j){ ga += g * 0.1; j += j * 阅读全文
posted @ 2023-01-03 17:21 Keith- 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<stdio.h> typedef long long LL; const int N = 1e6 + 10; LL f[N]; void init(){ f[1] = 1;f[2] = 2;f[3] = 3; for(int i = 4; i < N; i ++ )f 阅读全文
posted @ 2023-01-03 16:31 Keith- 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<stdio.h> int cnt[10]; int op; int main(){ while(1){ scanf("%d",&op); if(!op)break; if(op < 20220 || op > 20229){puts("凭证无效");continue; 阅读全文
posted @ 2023-01-03 16:26 Keith- 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Ⅰ. 排序 一. quicksort ####1. 手敲 注释版 点击查看代码 void quicksort(int q[],int l,int r){ //递归终止的情况 if(l>=r)return; //子问题处理 int mid=q[l+r>>1],i=l-1,j=r+1; //quicks 阅读全文
posted @ 2023-01-03 16:05 Keith- 阅读(19) 评论(0) 推荐(0) 编辑