摘要:
1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstdio> 6 #define _xx ios_base::sync_with_stdio(0);ci 阅读全文
摘要:
1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstdio> 6 #define _xx ios_base::sync_with_stdio(0);ci 阅读全文
摘要:
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int M, N; 6 while (cin >> M >> N) { 7 if (M <= N) { 8 for (int i = M ; i <= N; i+ 阅读全文
摘要:
1 #include <bits/stdc++.h> 2 #define _xx ios_base::sync_with_stdio(0);cin.tie(0); 3 using namespace std; 4 typedef long long ll; 5 int main() 6 { 7 in 阅读全文
摘要:
#include using namespace std; const int maxn=500011; const int inf=1 #define pb push_back #define cl(a,b) memset(a,b,sizeof(a)); int a[maxn]; int main(){ int n; while(~scanf("%d",&n)){ ... 阅读全文
摘要:
1 #include <bits/stdc++.h> 2 #define _xx ios_base::sync_with_stdio(0);cin.tie(0); 3 using namespace std; 4 typedef long long ll; 5 ll dp[505][505] = { 阅读全文
摘要:
1 #include<stdio.h> 2 int map[100005],aggregate[100005]; 3 int father(int x) 4 { 5 while(x!=aggregate[x]) 6 { 7 x=father(aggregate[x]); 8 } 9 return x 阅读全文
摘要:
1 //回文判断 Codeforces Round #286 (Div. 2) 2 #include<iostream> 3 #include<cstdio> 4 int main() 5 { 6 string f,temp; cin>>f; 7 int len(f.size()); 8 for(c 阅读全文
摘要:
1 #include <bits/stdc++.h> 2 #define rep(i,a,b) for(int i = a;i <= b;++ i) 3 #define per(i,a,b) for(int i = a;i >= b;-- i) 4 #define mem(a,b) memset(( 阅读全文
摘要:
1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 ll dp[35] = {1, 1}; 5 int main() 6 { 7 int T; 8 for(int i = 2; i <= 30; i++ 阅读全文
摘要:
1 #include <bits/stdc++.h> 2 #define _xx ios_base::sync_with_stdio(0);cin.tie(0); 3 using namespace std; 4 typedef long long ll; 5 const ll p = 100000 阅读全文
|