摘要:
传送门 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 int main() { 5 int q; cin >> q; 6 while (q--) { 7 ll n; cin >> n; 8 ll 阅读全文
摘要:
传送门 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn = 105; 5 double a[maxn]; 6 int main() { 7 int q; scanf( 阅读全文
摘要:
传送门 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 2e5+5; 4 int main() { 5 int n, x, y; cin >> n >> x >> y; 6 string s; cin >> s 阅读全文
摘要:
传送门 1 #include <bits/stdc++.h> 2 using namespace std; 3 set<int> se; 4 int f(int x) { 5 x += 1; 6 while (x % 10 == 0 && x) x /= 10; 7 return x; 8 } 9 阅读全文
摘要:
传送门 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 int main() { 5 int q; scanf("%d",&q); 6 while (q--) { 7 ll a, b, n, S; 阅读全文
摘要:
hdu3397 Sequence operation 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e6+5; 4 struct node { 5 /// l,r表示当前结点区间范围[l,r] 6 int 阅读全文
摘要:
P3254 圆桌问题 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1005, inf = 0x3f3f3f; 4 struct Edge { 5 int from, to, cap, flow; 6 }; 阅读全文
摘要:
P4014 分配问题 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 305, inf = 0x3f3f3f3f; 4 struct Edge { 5 int from, to, cap, flow, cost 阅读全文
摘要:
P4016 负载平衡问题 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1005, inf = 0x3f3f3f3f; 4 struct Edge { 5 int from, to, cap, flow, c 阅读全文
摘要:
P1251 餐巾计划问题 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int maxn = 5005, inf = 0x3f3f3f3f; 5 struct Edge { 6 in 阅读全文