08 2017 档案
摘要:1000.a+b。 #include<bits/stdc++.h> using namespace std; int a,b; int main() { ios::sync_with_stdio(false); while(~scanf("%d%d",&a,&b)) printf("%d\n",a+
阅读全文
摘要:A.枚举一个区间,判断是否有数符合。 #include<bits/stdc++.h> using namespace std; long long l,r,x,y,k; int main() { ios::sync_with_stdio(0); cin >> l >> r >> x >> y >>
阅读全文
摘要:A.统计字母个数。 #include<bits/stdc++.h> using namespace std; string s; int n; map<char,int> mp; int main() { ios::sync_with_stdio(0); cin >> s >> n; int cnt
阅读全文
摘要:A.排序,比较中间两个大小。 #include<bits/stdc++.h> using namespace std; int n,a[205]; int main() { ios::sync_with_stdio(0); cin >> n; for(int i = 1;i <= 2*n;i++)
阅读全文
摘要:A.map统计数量,更新最大值。 #include<bits/stdc++.h> using namespace std; int n; map<int,int> mp; int main() { ios::sync_with_stdio(0); int T; cin >> T; while(T--
阅读全文
摘要:A.统计每个字母数量,比较是否超过k。 #include<bits/stdc++.h> using namespace std; int n,k,cnt[26] = {0}; string s; int main() { ios::sync_with_stdio(0); cin >> n >> k
阅读全文
摘要:A.每天更新判断。 #include<bits/stdc++.h> using namespace std; int n,k,a[105]; int main() { ios::sync_with_stdio(0); cin >> n >> k; for(int i = 1;i <= n;i++)
阅读全文
摘要:A.两个方向都判断。 #include<bits/stdc++.h> using namespace std; string s1,s2; map<char,int> mp; int n; int main() { ios::sync_with_stdio(0); mp['v'] = 0; mp['
阅读全文
摘要:A.比较两人总时间。 #include<bits/stdc++.h> using namespace std; int s,v1,v2,t1,t2; int main() { ios::sync_with_stdio(false); cin >> s >> v1 >> v2 >> t1 >> t2;
阅读全文

浙公网安备 33010602011771号