随笔分类 - LuoGu OJ
摘要:1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < b;i ++) 3 4 typedef long long ll; 5 using namespace std; 6 inline ll read() 7 { 8 ll ans = 0; 9 char ch = getchar(), last = ' '; 10
        阅读全文
                
摘要:1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < b;i ++) 3 typedef long long ll; 4 using namespace std; 5 inline ll read() 6 { 7 ll ans = 0; 8 char ch = getchar(), last = ' '; 9 wh
        阅读全文
                
摘要:https://www.luogu.org/blog/Asurudo/solution-p1095
        阅读全文
                
摘要:1 #pragma GCC optimize("Ofast") 2 #include <bits/stdc++.h> 3 #define maxn 13003 4 #define _for(i,a,b) for(int i = (a);i < b;i ++) 5 typedef long long ll; 6 using namespace std; 7 8 inline ll read() 9 
        阅读全文
                
摘要:https://www.luogu.org/blog/Asurudo/solution-p1363
        阅读全文
                
摘要:1 #include 2 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 19 putchar(x % 10 + '0'); 20 } 21 ll N,K; 22 int bitcount (ll n) 23 { 24 int count=0; 25 while (n) 26 { 27 ...
        阅读全文
                
摘要:1 #pragma GCC optimize("Ofast") 2 #include 3 #define maxn 13003 4 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 21 putchar(x % 10 + '0'); 22 } 23 struct wood 24 { 25 int W; ...
        阅读全文
                
摘要:1 #pragma GCC optimize("Ofast") 2 #include 3 #define maxn 13003 4 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 21 putchar(x % 10 + '0'); 22 } 23 int L,S,T,M; 24 int stone[103];...
        阅读全文
                
摘要:1 #pragma GCC optimize("Ofast") 2 #include 3 #define maxn 13003 4 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 21 putchar(x % 10 + '0'); 22 } 23 24 int N,M; 25 int ip[400]; 26...
        阅读全文
                
摘要:1 #include 2 #define maxn 13003 3 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 19 putchar(x % 10 + '0'); 20 } 21 int n,m; 22 int a[2503][2503]; 23 int dp[2503][2503]; 24 int h[2...
        阅读全文
                
摘要:1 #include 2 #define maxn 13003 3 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 19 putchar(x % 10 + '0'); 20 } 21 22 ll T,n; 23 struct P 24 { 25 ll a; 26 ll b; 27 ll...
        阅读全文
                
摘要:1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < b;i ++) 3 typedef long long ll; 4 using namespace std; 5 inline ll read() 6 { 7 ll ans = 0; 8 char ch = getchar(), last = ' '; 9 wh
        阅读全文
                
摘要:1 #include 2 #define maxn 13003 3 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 19 putchar(x % 10 + '0'); 20 } 21 int n,m; 22 int ap[203][203]; 23 int dp[203][203]; 24 25 int m...
        阅读全文
                
摘要:1 #include 2 #define maxn 13003 3 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 19 putchar(x % 10 + '0'); 20 } 21 int N,V = 0; 22 int base = 0; 23 int m[maxn]; 24 int d[maxn]; 25...
        阅读全文
                
摘要:1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < b;i ++) 3 typedef long long ll; 4 using namespace std; 5 inline ll read() 6 { 7 ll ans = 0; 8 char ch = getchar(), last = ' '; 9 wh
        阅读全文
                
摘要:1 #include 2 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 18 putchar(x % 10 + '0'); 19 } 20 int N; 21 int a[103]; 22 23 int sv1(int k) 24 { 25 int dp1[103]; 26 int dp1ed...
        阅读全文
                
摘要:1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < b;i ++) 3 typedef long long ll; 4 using namespace std; 5 inline bool read(int &x) 6 { 7 char c=getchar(); 8 if(c==EOF)return false;
        阅读全文
                
摘要:1 #include 2 #define _for(i,a,b) for(int i = (a);i = 10) write(x / 10); 18 putchar(x % 10 + '0'); 19 } 20 int N,M; 21 int a[101]; 22 int dp[10003]; 23 int main() 24 { 25 N = read(),M = rea...
        阅读全文
                
                    
                
浙公网安备 33010602011771号