#2386. Minimax 搜索

    ID: 2386 传统题 1000ms 256MiB 尝试: 0 已通过: 0 难度: NOI/NOI+/CTS 上传者: 标签>PROV赛事:contest467来源:qoj.ac数据:公开样例深搜递归

Minimax 搜索

Minimax 搜索

题目描述

Minimax 搜索 - Problem - QOJ.ac

Login

Register

QOJ.ac

QOJ

[QOJ](//qoj.ac)

Contests

Category

Problems

Submissions

Hack!

Blogs

Day 1

		Time Limit:			2 s		
			Memory Limit:			512 MB		
			Total points:			100		

				2019 浙江省队选拔赛 Day 1 (ZJOI 2019 Day 1)				

		C.
		Minimax 搜索		

	



[
	Statistics	](/contest/467/problem/2578/statistics)





	[
		Statement		](#tab-statement)

			

[ Languages](#)


	[Default](/contest/467/problem/2578/statement/default)
	

							[English](/contest/467/problem/2578/statement/en)

Submit

Custom Test

Attachments

Discussions & Issues

Back to the contest

					**This problem is prepared by 

jiry_2 .**

Submit

Run

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0

No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.

Do not submit duplicated issues.

Issues must be filed in English or Chinese only.

Active Issues 0

No issues in this category.

Closed/Resolved Issues 0

No issues in this category.

					 English					
				

				[العربية](//qoj.ac/contest/467/problem/2578?locale=ar)
					[English](//qoj.ac/contest/467/problem/2578?locale=en)
					[Español](//qoj.ac/contest/467/problem/2578?locale=es)
					[Français](//qoj.ac/contest/467/problem/2578?locale=fr)
					[日本語](//qoj.ac/contest/467/problem/2578?locale=ja)
					[한국어](//qoj.ac/contest/467/problem/2578?locale=ko)
						[Türkçe](//qoj.ac/contest/467/problem/2578?locale=tr)
						[简体中文](//qoj.ac/contest/467/problem/2578?locale=zh-cn)
					[繁體中文](//qoj.ac/contest/467/problem/2578?locale=zh-tw)

QOJ.ac | QOJ 4.5.49 (2019-2026)

Made with ❤️ by Qingyu✨ | Contact us: [email protected]

Server Time: 2026-11-09 07:59:19 (UTC+8)

输入格式

(见题面原文)

输出格式

(见题面原文)

数据范围

(见题面原文)

样例

样例 1

5 1 5
1 5
1 4
5 3
5 2
4 0 1 0 2

样例 2

50 1 50
1 20
17 12
1 23
45 27
31 43
15 38
10 1
30 17
4 27
25 1
37 8
7 27
21 19
38 3
39 13
3 14
25 14
37 16
40 12
50 26
31 21
38 2
6 49
26 1
40 47
44 31
25 41
39 7
14 8
32 41
42 11
41 49
33 18
42 39
4 36
23 5
14 48
28 4
10 34
7 26
21 33
41 35
9 26
29 28
41 46
12 36
22 31
24 49
14 21
16777216 0 8388608 0 0 0 0 0 0 0 0 4194304 2097152 0 1048576 0 0 0 0 0 0 0 0 0 0 0 524288 0 0 0 0 0 0 0 0 0 0 163840 0 0 90112 135168 0 0 0 0 0 0 0 135167