SleepWithMiku @ 2024-12-02 16:46:54
for(int i = 1, x, y; i <= m; i ++) {
Miku(x, y);
if(q[x] && q[x] != y) return cout << "0\n", void();
if(q[x]) continue;
q[x] = y; s[++ k] = {x, y};
}
没输入完直接
return
可以过掉全部的样例,汗流浃背了
by SleepWithMiku @ 2024-12-02 16:47:34
Miku
是快读,不要在意
by zenght @ 2024-12-02 20:01:37
完了,我貌似也是这么写的。。。。。。
by zjpwdyf @ 2024-12-02 21:19:11
完了,我貌似也是这么写的。。。。。。
by zhangbo1000 @ 2024-12-03 06:54:14
@SleepWithMiku @zjpwdyf @zenght 关于这个大样例的研究。
by SleepWithMiku @ 2024-12-03 11:34:26
@zhangbo1000 绷