A. Jabber IDtime limit per test0.5 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJabber ID on the national Berland s...
原创 2022-10-18 13:37:55
54阅读
首先,为了统计有多少对,一个简单的方法是对于松鼠走到的每一个格子,求出猫能走的所有点的集合,然后对这些集合进行累加,就能得到我们想要的答案。但是问题的关键是在于猫走到的集合大小怎么求出来 在考试的时候没有完全想出来,只想到要求出一个左右边界,对于中间的可行点,我也只是觉得和松鼠当前和前一个格子的颜色有关,但是总有很多没有想清楚。 考完看了别人的标准程序,发现的确是这样的。假设松
转载 2024-05-09 18:12:30
45阅读
论小号如何上分,并超过大号 shzr好久不打CF了而且很菜,但是毕竟还是到了1600的,于是和ZUTTER_一起用原来的一个小号:wzxakioi参加了比赛;  然而div3是真的简单,虽然网很卡,但是终究还是AK了,找了一个算rating的插件算了一下,发现这一场可以上254...??? 比我的大号都高了...A:  十分简单,扫一遍,需要改就改,没了
http://codeforces.com/contest/990/problem/C C. Bracket Sequences Concatenation Problem time limit per test 2 seconds memory limit per test 256 megabyt
IT
原创 2021-07-29 17:09:09
298阅读
题意:给定n个数,他们之间可以互相传递一定的值,每次传递有k%的损失,现在需要进行若干次传递使得最终每个数都等于所有数的均值。做法:设置两个量maxn和minn,不断地更新maxn和minn,直到两者相等。中间借助mid = (maxn+minn)/2进行比较。代码:#include #include using namespace std;const int MAXN = 10000 + 5;const double eps = 1e-6;double a[MAXN];int main(){// freopen("in.txt", "r", stdin
转载 2013-02-05 15:54:00
81阅读
2评论
C. Kuro and Walking Route time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Kuro and Wa
原创 2021-07-29 17:40:01
134阅读
B. Knights of a Polygonal Table time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Unlike Kn
原创 2021-07-29 17:41:02
397阅读
C. Two Squares time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given two squares,
IT
原创 2021-07-29 17:09:01
181阅读
B. World Cup time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Allen wants to enter a fan z
IT
原创 2021-07-29 17:09:00
123阅读
A. Amity Assessment time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Bessie the cow a...
原创 2022-10-18 13:35:50
94阅读
A. Gabriel and Caterpillartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe 9-th grade student ...
原创 2022-10-18 13:48:20
72阅读
C. Dijkstra?time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputYou are given a weighted undirected gr...
原创 2022-10-18 13:49:14
28阅读
A. Parliament of Berland time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There are n ...
原创 2022-10-18 13:36:28
19阅读
C. Bus time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A bus moves along the coordinate
转载 2017-09-26 11:08:00
97阅读
2评论
D. Suit and Tie time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Suit and Tie time lim
IT
原创 2021-07-29 17:08:58
98阅读
C. Foe Pairstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a permutation p of leng...
原创 2022-10-18 13:48:40
95阅读
D. Make a Permutation! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ivan has an array
转载 2017-09-26 11:04:00
74阅读
2评论
C. Alphabetic Removals time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a s
IT
原创 2021-07-29 17:08:59
394阅读
B. Processing Queries time limit per test5 seconds memory limit per test256 megabytes inputstandard input outputstandard output In this proble...
原创 2022-10-18 13:36:26
151阅读
B. Bargaining Tabletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBob wants to put a new bargai...
原创 2022-10-18 13:48:45
46阅读
  • 1
  • 2
  • 3
  • 4
  • 5