土拨鼠素数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
背景
接着AASB06题,锑君带着锑集团精英土拨鼠把人类打败了!
描述
锑君十分饥饿,所以他现在想吃 人类,但人类都是一团一团的,而锑君觉得人数为质数的人团最好吃,而现在有个人团,每个人团有人请你帮锑君算一下,在个人团中,锑君最多能吃几个人类。
输入
第一行输入 第二行输入次
输出
输出锑君最多能吃多少个人类,若没有人数为质数的人团,输出sad
案例
5
17 4 2 3 16
22
5
1 4 6 8 9
sad
案例解释
17,2和3是质数,相加就等于22。
限制
2s, 1024MB for each test case.
AASB系列炒鸡考试
- Status
- Done
- Rule
- IOI(Strict)
- Problem
- 11
- Start at
- 2023-10-21 15:00
- End at
- 1970-1-1 8:00
- Duration
- -471631 hour(s)
- Host
- Partic.
- 1