07 2017 档案
摘要:A.统计总时间,从总时间开始找第一个能提交的点。 #include<bits/stdc++.h> using namespace std; int n,m,a[1005],ok[100005] = {0}; int main() { ios::sync_with_stdio(0); cin >> n
阅读全文
摘要:A.b序列从大到小填a序列中的0,在判断。 #include<bits/stdc++.h> using namespace std; int n,m,a[105],b[105]; int main() { ios::sync_with_stdio(0); cin >> n >> m; for(int
阅读全文
摘要:A.要求坐标差为移动距离的两倍。 #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); int x1,x2,y1,y2,x,y; cin >> x1 >> y1 >> x2 >> y2 >
阅读全文
摘要:A.不断增加时间,直到符合要求。 #include<bits/stdc++.h> using namespace std; int a,b; char c; int f(int x) { return x%10*10+x/10; } int main() { ios::sync_with_stdio
阅读全文
摘要:A.直接判断每一个数。 #include<bits/stdc++.h> using namespace std; int n,a[55][55]; int main() { ios::sync_with_stdio(0); cin >> n; for(int i = 1;i <= n;i++) {
阅读全文
摘要:A.判断n/k的奇偶性。 #include<bits/stdc++.h> using namespace std; long long n,k; int main() { ios::sync_with_stdio(0); cin >> n >> k; long long t = n/k; if(t%
阅读全文
摘要:A.直接模拟。 #include<bits/stdc++.h> using namespace std; int c,v0,v1,a,l; int main() { ios::sync_with_stdio(0); cin >> c >> v0 >> v1 >> a >> l; int ans =
阅读全文
摘要:A.winners总数为(k+1)diplomas。 #include<bits/stdc++.h> using namespace std; long long n,k; int main() { ios::sync_with_stdio(0); cin >> n >> k; long long
阅读全文
摘要:A.小的那个数的阶乘。 #include<bits/stdc++.h> using namespace std; int a,b; int main() { ios::sync_with_stdio(0); cin >> a >> b; int t = min(a,b); int ans = 1;
阅读全文
摘要:A.模拟,注意单人的时候判断顺序。 #include<bits/stdc++.h> using namespace std; int n,a,b; int main() { ios::sync_with_stdio(0); cin >> n >> a >> b; int b1 = b,b2 = 0,
阅读全文
摘要:A.线性判断。 #include<bits/stdc++.h> using namespace std; int n,a[105] = {0}; int main() { ios::sync_with_stdio(0); cin >> n; for(int i = 1;i <= n;i++) cin
阅读全文
摘要:A.连续1的个数,0用来分割,注意连续的0。 #include<bits/stdc++.h> using namespace std; int n; string s; int main() { ios::sync_with_stdio(0); cin >> n >> s; int now = 0,
阅读全文

浙公网安备 33010602011771号