Skip to content

カード収集 (Card Collection)

Unrated
日本語

Language

Contribute a translation
Time limit
4000 ms
Memory limit
1024 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

カード収集:公式日本語問題文 1ページ

カード収集:公式日本語問題文 2ページ

カード収集:公式日本語問題文 3ページ

カード収集:公式日本語問題文 4ページ

Examples

Sample input 1
5 3
1 3
2 2
4 4
1 3
1 1
2 3
2 1
4 4
Sample output 1
1 3
Sample input 2
2 2
1 1
2 2
1 2
2 1
Sample output 2

Sample input 3
8 8
5 2
4 4
1 3
7 8
3 1
8 7
6 5
2 6
1 4
7 2
8 8
3 1
5 6
2 7
6 3
2 5
Sample output 3
3 4 5 8

Notes

Tags

No tags yet

Source