随笔分类 - 思维
摘要:B. Silly Mistake 题目大意: 首先定义有效的一天: 每一个不同的数字只能进去一次,出来一次,正数代表进去,负数代表出来 每一个人不能过夜 不合理: 一个数字只有进去,或者只有出来则是无效的 给你一个数组,让你把数字分成若干个有效天,不要求最大化这个天数,也不要求最小化这个天数, 问怎
阅读全文
摘要:D. Fun with Integers You are given a positive integer nn greater or equal to 22. For every pair of integers aa and bb (2≤|a|,|b|≤n2≤|a|,|b|≤n), you ca
阅读全文
摘要:D. Equalize Them All time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Equalize Them Al
阅读全文
摘要:E. Superhero Battle time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Superhero Battle
阅读全文
摘要:Description The factory of the Impractically Complicated Products Corporation has many manufacturing lines and the same number of corresponding storag
阅读全文
摘要:C. Nice Garland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Nice Garland time limi
阅读全文
摘要:C. Meaningless Operations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Meaningless
阅读全文
摘要:题目:https://vj.69fa.cn/1fc993e7e0e1e6fa7ce4640b8d46ef8d?v=1552762626 这个题目,之前有一点思路,但是呢,后来又不知道怎么去执行,然后就没有了耐心就去网上找了题解,这个去遍历每一个数,如果和他挨在一起就把它标记为相同的数d。 然后之后判
阅读全文
摘要:#include <cstring> #include <algorithm> #include <iostream> #include <cstdio> #include <map> #include <cstdlib> #include <vector> #define inf 0x3f3f3f
阅读全文
摘要:B. Two Cakes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Two Cakes time limit per
阅读全文
摘要:C. Nastya Is Transposing Matrices time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Nastya
阅读全文
摘要:B. Mike and Children time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Mike and Childre
阅读全文
摘要:E. Magic Stones time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output E. Magic Stones time limi
阅读全文