上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: #include #include #include using namespace std; void print(int a[],int n) { for(int i=0;i> n; for(int i=0;i> a[i]; print(a,n); mergeSort(a,b,0,n-1,ans); print(a,n); cout << "a... 阅读全文
posted @ 2019-03-02 16:23 最美遇见你 阅读(171) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; void print(int a[],int n) { for(int i=0;i> n; for(int i=0;i> a[i]; print(a,n); mergeSort(a,b,0,n-1); print(a,n); return 0; ... 阅读全文
posted @ 2019-03-02 16:15 最美遇见你 阅读(117) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; void print(int a[],int n) { for(int i=0;imid) j--; if(i> n; for(int i=0;i> a[i]; print(a,n); quickSort(a,0,n-1); print(a,n)... 阅读全文
posted @ 2019-03-02 16:07 最美遇见你 阅读(143) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; const int len = 1010; void print(int a[]) { for(int i=1;i='0' && ch='A' && ch='a' && ch=n) { a[i+1]++; a[i]%=n; ... 阅读全文
posted @ 2019-03-02 00:33 最美遇见你 阅读(167) 评论(0) 推荐(0)
摘要: #include #include #include #include using namespace std; int myMax(int x,int y){ return x>y?x:y; } void print(int a[],int end) { cout =end;i--) cout b[0]) return 1; if(a[0]-x+1=x;i--) {... 阅读全文
posted @ 2019-03-01 18:54 最美遇见你 阅读(192) 评论(0) 推荐(0)
摘要: 时间限制: 1Sec 内存限制: 128MB 提交: 5 解决: 0 时间限制: 1Sec 内存限制: 128MB 提交: 5 解决: 0 时间限制: 1Sec 内存限制: 128MB 提交: 5 解决: 0 题目描述 作为 drd 送的生日礼物,atm 最近得到了一个俄罗斯娃娃。他对这个俄罗斯娃娃 阅读全文
posted @ 2018-12-15 21:16 最美遇见你 阅读(610) 评论(0) 推荐(0)
摘要: 写的代码保存一下,留作纪念 第一题 #include<iostream> #include<cstdio> using namespace std; const int maxn = 1000010; int A[maxn]; int main(void) { int n; cin>>n; whil 阅读全文
posted @ 2018-12-12 18:17 最美遇见你 阅读(258) 评论(0) 推荐(0)
摘要: 题目描述 秋天到了,n只猴子采摘了一大堆苹果放到山洞里,约定第二天平分。这些猴子很崇拜猴王孙悟空,所以都想给他留一些苹果。第一只猴子悄悄来到山洞,把苹果平均分成n份,把剩下的m个苹果吃了,然后藏起来一份,最后把剩下的苹果重新合在一起。这些猴子依次悄悄来到山洞,都做同样的操作,恰好每次都剩下了m个苹果 阅读全文
posted @ 2018-12-07 00:10 最美遇见你 阅读(630) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.T... 阅读全文
posted @ 2018-11-30 17:10 最美遇见你 阅读(496) 评论(0) 推荐(0)
摘要: #include #include #include #include #include using namespace std; int w,h,n; const int maxn = 500; int x1[maxn],x2[maxn],y1[maxn],y2[maxn]; bool fld[maxn*6][maxn*6]; int dx[]={0,0,1,-1}; int dy[]={1,... 阅读全文
posted @ 2018-11-28 20:16 最美遇见你 阅读(222) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 15 下一页