
Codeforces
scy1106
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces #494 A. Polycarp's Pockets
A. Polycarp's Pockets废话不多说,直接上AC程序!#include<bits/stdc++.h>using namespace std;int n,x;int t[101];int main(){ scanf("%d",&n); for (int i=1;i<=n;i++){ scanf("%d",&x)...原创 2018-07-10 13:33:20 · 193 阅读 · 0 评论 -
Codeforces #494 C.Intense Heat
C. Intense Heat废话不多说,直接上AC程序!#include<bits/stdc++.h>using namespace std;double dp[5005][5005];double ans = 0;int main(){ int n,tk; cin >> n>>tk; for (int i=1;i<=n;...原创 2018-07-10 14:02:20 · 257 阅读 · 0 评论 -
Codeforces #490 A B C
A. Mishka and Contest#include<bits/stdc++.h>using namespace std;int n,k,a[110],b[110],ans;int main(){ cin>>n>>k; for(int i=0; i<n; i++) cin>>a[i]; for...原创 2018-07-10 14:23:34 · 232 阅读 · 0 评论 -
A. Sonya and Hotels
A. Sonya and Hotels#include <bits/stdc++.h>using namespace std ;int n ;int d,a[110] ;int main(){ scanf("%d%d",&n,&d) ; for (int i=1;i<=n;i++) scanf("%d",&a[i]) ; i...原创 2018-07-11 09:56:07 · 322 阅读 · 4 评论 -
B. Sonya and Exhibition
B. Sonya and Exhibition#include <bits/stdc++.h>using namespace std ;int main(){ int n; scanf("%d",&n) ; for (int i=1;i<=n;i++) printf("%d",i&1) ;}原创 2018-07-11 10:00:34 · 310 阅读 · 0 评论 -
A. Tanya and Stairways
A. Tanya and Stairways#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int a[n],b[n],j=1; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++){ i...原创 2018-07-11 10:34:49 · 248 阅读 · 0 评论 -
Codeforces #506 A.Many Equal Substrings
本题的地址:http://codeforces.com/contest/1029/problem/A废话不多说,直接上代码!#include<bits/stdc++.h>using namespace std;int kmp[100];int main(){ string s; int n,p; scanf("%d%d",&n,&...原创 2018-08-28 20:41:20 · 176 阅读 · 0 评论 -
Codeforces Round #360 B - Lovely Palindromes
这题我们发现加入输入一个数再反转有点烦,还要写while,万一有个什么东西搞反了就不好了。今天我来给大家推荐一个反转神器:strrev();只要输入一个char,如:char a[11];然后写strrev(a);现在a数组就反转了。下面附上本题代码:#include<bits/stdc++.h>using namespace std;int main(){ c...原创 2019-08-21 20:39:35 · 188 阅读 · 0 评论