2018年7月23日

摘要: #include #include #include int main(){ int n,i,k; srand(time(NULL)); n=rand()%101; for(i=1;in) ... 阅读全文
posted @ 2018-07-23 20:40 ~~晨阳 阅读(425) 评论(0) 推荐(0) 编辑
 
摘要: LIS 最长上升子序列 #include #include using namespace std;int a[1001],ans[1001],len;int main(){ int n,T; cin>>T; while(T--) { ... 阅读全文
posted @ 2018-07-23 17:30 ~~晨阳 阅读(131) 评论(0) 推荐(0) 编辑
 
摘要: bool cmp(int a,int b){ return a<b;}int main(){ int a[10]={2,7,1,4,4,6}; sort(a,a+6,cmp); // 去重之前先排序 int m=unique(a,... 阅读全文
posted @ 2018-07-23 17:15 ~~晨阳 阅读(116) 评论(0) 推荐(0) 编辑
 
摘要: import java.io.*;import java.util.*;import java.math.*;import java.text.*;public class Main { public static void main(String args[]) ... 阅读全文
posted @ 2018-07-23 11:44 ~~晨阳 阅读(141) 评论(0) 推荐(0) 编辑