Codeforces
Annmike
ACM
展开
-
Codeforces Round #531 (Div. 3)
https://codeforces.com/contest/1102/problem/A题意:给定一个数n,将1-n分成两组,使得两组数的差值最小,输出最小差值。思路:根据推理发现,随着n的增大,是有规律出现的,跟4的倍数有关系。#include<bits/stdc++.h>#include<iostream>using namespace std;#...原创 2019-02-02 21:22:28 · 230 阅读 · 0 评论 -
Codeforces Round #535 (Div. 3)
https://codeforces.com/contest/1108/problem/A这个题的意思就是给你两个区间,在第一个区间中找一个点a,使l1<=a<=r1,在第二个区间中找一个点b,使l2<=b<=r2。很简单,直接把两个区间的左端点输出就行了,如果两个区间的左端点相同,则把第二个区间的右端点输出。#include<bits/stdc++.h...原创 2019-01-29 21:35:32 · 253 阅读 · 0 评论 -
Codeforces Round #536 (Div. 2)
https://codeforces.com/contest/1106/problem/A题意:给定一个n*n的字符串,看能由x组成几个 “X”。思路:直接遍历一遍,然后将能够组成的X的找出来#include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ char ch...原创 2019-02-16 13:24:17 · 260 阅读 · 0 评论 -
Codeforces Round #529 (Div. 3)
https://codeforces.com/contest/1095/problem/A题意:给定一个长度为n的加密过的字符串,找到他的原来的序列,加密的过程就是第一个字符输出一个,第二个字符输出两个,第三个输出三个,依次;思路:设置一个标志位每次递增,输出相应的字符。#include<bits/stdc++.h>int main(){ int n; ...原创 2019-02-16 15:31:54 · 254 阅读 · 1 评论