chen_zhe @ 2023-02-01 13:08:15
2023 年 2 月 13 日更新:最新进行的 NOI 系列赛事题目【包括 NOIP、CSP-JS、NOI Online、WC、NOI、CTS(C)、国家集训队集训(CTT)、联合/各省省选、NOIP 春季测试等竞赛的题目】以及 APIO、IOI 题目不接受用户投题,由管理组上传。
2023 年 3 月 6 日更新:2023 年 3 月 5 日举办的 THUPC 不接受用户投题,由管理组上传
洛谷鼓励各位用户将大型比赛的试题或者洛谷上缺乏的模板题,在确认没有版权问题的情况下,提供给洛谷。 但是因为此类贴子日益增多,严重影响了讨论版面,而且部分用户所提供的试题并不符合规定,故做出以下说明:
USACO
,POI
,Baltic OI
等),或者大型的网络公开赛(例如 Codeplus
等),但是不包含例如校内的网络模拟赛之类的试题。spj
,则相对较易的部分必须自行完成。若实在有困难才可以征集。具体尺度由管理进行评判。洛谷不接受用户直接提供自创的原创题。若非搬运大型比赛的试题的情况,一般仅允许通过审核的洛谷公开赛赛题加入主题库(通过审核公开赛、赛后申请加入主题库的方式加入)。
同时,对于已在洛谷主题库中但不符合洛谷主题目题目规范的题目,我们鼓励用户进行更正,但也至少要达到绿勾级别。要求更正后的题面严格遵守规范,同样回复在本讨论下,为了方便管理员,请将题面使用代码框```括起来。
为了提高管理员的审核效率,本贴禁止任何无意义回复,所有无意义回复均会被删除,行为恶劣者将会禁言,但是可以询问说明中的问题。若为修复题目问题,建议带上链接以增加效率。
请不要@管理员,会有管理员不定期来本帖处理。
by 035966_L3 @ 2023-02-04 01:02:44
请求去除 P1039 数据中的 \r。
by 035966_L3 @ 2023-02-04 01:03:26
请求添加 P4905 hack,
by 035966_L3 @ 2023-02-04 01:12:56
请求撤下 P1000 第 6 篇题解,因为 Python 2 被爆破了。
by masterhuang @ 2023-02-04 16:18:04
https://www.luogu.com.cn/discuss/506661?page=1
这篇帖子里的题解&数据问题请求处理
by DottedCalculator @ 2023-02-04 18:57:42
@览遍千秋
更新:
第5页提供的USACO一月试题翻译版本已经全部上传官方数据;
由于银组T2时限应该为8s,而用户端只能最大开到5s,请求管理端将时限开大以符合官方标准,并加上提示“滥用卡评测者将收到处罚”。
刚发现银组T3的SPJ一开始实现错误,所以将更正版发在下一条回复。
谢谢!
by DottedCalculator @ 2023-02-04 18:59:01
#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
registerTestlibCmd(argc, argv);
int n, a[100010], b[100010];
n = inf.readInt();
for (int i = 0; i < n; i++) a[i] = inf.readInt();
int ans1 = 0, ans2 = 0;
string s1, s2;
s1 = ans.readString(); s2 = ouf.readString();
if (s1.length() != s2.length())
quitf(_wa, "The output length is invalid.");
for (int i = 1; i < s1.length(); i++) {
if (s1[i - 1] != s1[i]) ans1++;
if (s2[i - 1] != s2[i]) ans2++;
}
assert(ans2 >= ans1);
if (ans2 > ans1) quitf(_wa, "The Jury has a better solution.");
int cur = 0;
for (int i = 0; i < s2.length(); i++){
if (s2[i] != 'L' && s2[i] != 'R') quitf(_wa, "The output contains illegal characters.");
if (s2[i] == 'R') {
b[cur]++;cur++;
}
else{
cur--;b[cur]++;
}
if(cur < 0 || cur > n) quitf(_wa, "Bessie left the number line");
}
if(cur != 0) quitf(_wa, "Bessie didn't arrive at 0 in the end.");
for(int i = 0; i < n; i++)
if(a[i] != b[i]) quitf(_wa," The output doesn't fit with Farmer Nhoj's observations.At i=%d, c_i=%d, but your output has value %d",i,a[i],b[i]);
quitf(_ok, "The answer is correct");
}
by StayAlone @ 2023-02-04 19:14:50
管理能不能看一下 CF1790 交在通道的翻译
by 览遍千秋 @ 2023-02-04 19:16:43
@•́へ•́╬ CCC2021 已经收录,感谢您的贡献。
by 览遍千秋 @ 2023-02-04 19:17:18
@DottedCalculator USACO 由我自行处理
by ttq012 @ 2023-02-04 19:33:10
统一回复:
usaco2005feb:
https://www.luogu.com.cn/problem/U278229
https://www.luogu.com.cn/problem/U278232
https://www.luogu.com.cn/problem/U278235
https://www.luogu.com.cn/problem/U256567
https://www.luogu.com.cn/problem/U256569
https://www.luogu.com.cn/problem/U257867
PA 2008:
https://www.luogu.com.cn/problem/U256569
usaco2004dec:
https://www.luogu.com.cn/problem/U278319
https://www.luogu.com.cn/problem/U278320
https://www.luogu.com.cn/problem/U278322
https://www.luogu.com.cn/problem/U278519
https://www.luogu.com.cn/problem/U278521
https://www.luogu.com.cn/problem/U278607
poi2004:
https://www.luogu.com.cn/problem/U278605