05 2018 档案
摘要:百度无人车 二分 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int maxn = 2e4 + 10; LL a[maxn]; int main(){ int n; scanf("%d", &n)
阅读全文
摘要:A.最小化价格 贪心 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e5 + 10; 4 int a[maxn], b[maxn], c[maxn], id[maxn]; 5 multiset<int> S
阅读全文
摘要:最大的K-偏差排列 分类讨论 1 #include <bits/stdc++.h> 2 using namespace std; 3 int p[111]; 4 5 int main() { 6 int N, K; 7 scanf("%d %d", &N, &K); 8 for (int i = 1
阅读全文
摘要:A Whole New Word 暴力 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 char s[11], t[11]; 5 set<string> S; 6 map<char, int> c
阅读全文
摘要:长方体 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 int X1, X2, X3; 6 scanf("%d %d %d", &X1, &X2, &X3); 7 printf("%d\n", 4 * (int)
阅读全文
摘要:Waffle Choppers 暴力 1 #include <bits/stdc++.h> 2 using namespace std; 3 char G[111][111]; 4 int sum[111][111]; 5 6 int main(){ 7 int T; 8 scanf("%d", &
阅读全文
摘要:250 LineOff 随便搞 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 class LineOff { 5 public: 6 int movesToDo(string points) { 7 stack<char> st; 8 i
阅读全文

浙公网安备 33010602011771号