Skip to content

セルオートマトン (Cell Automaton)

Unrated
日本語

Language

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

Statement

問題文 1ページ

問題文 2ページ

問題文 3ページ

問題文 4ページ

問題文 5ページ

問題文 6ページ

Examples

Sample input 1
2 3
0 2
1 0
0
1
2
Sample output 1
2
8
12
Sample input 2
3 5
0 0
2 2
5 5
0
1
2
3
4
Sample output 2
3
12
21
24
26
Sample input 3
4 10
-3 -3
3 3
-4 4
4 -4
0
1
2
3
4
5
6
7
8
9
Sample output 3
4
16
32
48
56
56
55
56
60
64

Notes

Tags

No tags yet

Source