上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 47 下一页
摘要: 1 #include 2 using namespace std; 3 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 22 putchar(x % 10 + '0'); 23 } 24 void msort(int le,int rr) 25 { 26 if(le==rr) 27 re... 阅读全文
posted @ 2019-07-28 12:39 Asurudo 阅读(155) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define _for(i,a,b) for(int i = (a);i >= 1; 19 } 20 21 string rnt; 22 int n = bi.size(); 23 reverse(bi.begin(),bi.end()); 24 _for(i,0,... 阅读全文
posted @ 2019-07-28 10:39 Asurudo 阅读(200) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define _for(i,a,b) for(int i = (a);i 0) 14 15 { 16 if(b&0x1) 17 18 rnt=(rnt*a)%m; 19 a = (a*a)%m; 20 b >>= 1; 21 ... 阅读全文
posted @ 2019-07-28 09:31 Asurudo 阅读(139) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define _for(i,a,b) for(int i = (a);i rnt) 13 return 1<<30; 14 if(s==(1<<(n+1))-1) 15 rnt = min(rnt,sum); 16 17 _for(i,0,n+1) 18 ... 阅读全文
posted @ 2019-07-26 14:39 Asurudo 阅读(377) 评论(0) 推荐(0)
摘要: 1 inline ll read() 2 { 3 ll ans = 0; 4 char ch = getchar(), last = ' '; 5 while(!isdigit(ch)) last = ch, ch = getchar(); 6 while(isdigit(ch)) ans = (ans = 10) write(x / 10); 14 ... 阅读全文
posted @ 2019-07-26 09:32 Asurudo 阅读(250) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define _for(i,a,b) for(int i = (a);i =0 && y>=0 && x<R && y<C; 15 } 16 int msf(int cx,int cy) 17 { 18 if(ms[cx][cy]) return ms[cx][cy]; 19 ms[cx][cy] ... 阅读全文
posted @ 2019-07-26 09:24 Asurudo 阅读(192) 评论(0) 推荐(0)
摘要: 1 #include 2 #define _for(i,a,b) for(int i = a;i num) 38 break; 39 } 40 if(sumt==num) 41 { 42 flag = 1; 43 break; 44 } 45... 阅读全文
posted @ 2019-07-25 17:54 Asurudo 阅读(205) 评论(0) 推荐(0)
摘要: 1 #include 2 #define _for(i,a,b) for(int i = a;i =0 && y>=0 && x> q; 28 q.push({st,0}); 29 vis[st.x][st.y] = 1; 30 while(!q.empty()) 31 { 32 P pos = q.front().first; 33 ... 阅读全文
posted @ 2019-07-25 09:33 Asurudo 阅读(302) 评论(0) 推荐(0)
摘要: 1 #include 2 #define _for(i,a,b) for(int i = a;i 0 && p.y>0 && p.x> q; 29 q.push({st,0}); 30 vis[st.x][st.y][st.dr] = 0; 31 while(!q.empty()) 32 { 33 pair nw = q.front(); 3... 阅读全文
posted @ 2019-07-25 07:43 Asurudo 阅读(231) 评论(0) 推荐(0)
摘要: 1 #define _for(i,a,b) for(int i = (a);i rnt; 6 vector LIST; 7 int n; 8 void dfs(int cur,string s) 9 { 10 if(cur==n) 11 { 12 ... 阅读全文
posted @ 2019-06-16 00:06 Asurudo 阅读(274) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 47 下一页