上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: A.只要考虑分成一个串的情况就可以了。 #include<bits/stdc++.h> using namespace std; int n,a[105]; int main() { ios::sync_with_stdio(0); cin >> n; for(int i = 1;i <= n;i+ 阅读全文
posted @ 2017-09-02 01:32 zzzzzzzzhu 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 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+ 阅读全文
posted @ 2017-08-31 23:52 zzzzzzzzhu 阅读(4059) 评论(0) 推荐(2) 编辑
摘要: 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 >> 阅读全文
posted @ 2017-08-30 03:37 zzzzzzzzhu 阅读(451) 评论(2) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-26 21:24 zzzzzzzzhu 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 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++) 阅读全文
posted @ 2017-08-26 19:34 zzzzzzzzhu 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 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-- 阅读全文
posted @ 2017-08-26 18:33 zzzzzzzzhu 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-19 09:12 zzzzzzzzhu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 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++) 阅读全文
posted @ 2017-08-18 22:25 zzzzzzzzhu 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 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[' 阅读全文
posted @ 2017-08-01 18:35 zzzzzzzzhu 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 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; 阅读全文
posted @ 2017-08-01 14:21 zzzzzzzzhu 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页