ACM-ICPC 2018 Jiaozuo Online Contest

From EOJ Wiki
Revision as of 10:12, 15 September 2018 by Zerol (talk | contribs) (→‎Problem I)
Jump to navigation Jump to search

ECNU Foreigners

终于一机了。发现可能还是浪费了一点时间。(某些题花的时间太久了)

Problem A

Solved by zerol. 00:07 (+)

温暖的签到。

Problem B

Solved by ultmaster. 01:03 (+)

题意:要求从 $n$ 个数中挑出 $m$ 个数,然后用加减乘除等规定的运算符号依次作用在当前的这个数上,结果尽可能大。

题解:最小可能不一定,但最大应该就是维护一个最大一个最小就好了。DP。

Problem E

Solved by kblack. 02:02 (+1)

Problem F

Solved by zerol. 04:25 (+)

Problem G

Solved by zerol. 00:25 (+)

题意:略

题解:$2^{n-1}$

Problem H

Solved by zerol. 03:26 (+2)

Problem I

Solved by zerol. 00:15 (+)

题意:问 A×B×C 的立方体能否被 1×1×2 完全填充。

题解:当且仅当 A×B×C 为偶数时可以(证明显然)。

Problem J

Solved by ultmaster. 02:27 (+1)

题意:问一个数是否是完全平方数,问 $1+2+\cdots+k$ 是否是完全平方数。

题解:二分,大数。有点卡常,后面一问优化了常数才过。

另解:模质数做二次剩余,但是被队友拦住了。

Problem K

Solved by kblack. 00:46 (+2)

Problem L

Solved by kblack. 00:19 (+)