J. Jacobi Pattern
time limit per test
5 seconds
memory limit per test
256 megabytes
input
stdin
output
stdout
Input
Output
Examples