This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.*; | |
public class WordStatLineIndex { | |
public static final char[] buf = new char[256]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import stdin, stdout, stderr | |
import math | |
def main(): | |
h, w, n = list(map(int, stdin.readline().split())) | |
field = [[0 for j in range(w)] for i in range(h)] | |
for i in range(h): | |
field[i] = list(map(int, stdin.readline().split())) | |
f = [[0 for j in range(w)] for i in range(h)] | |
f[0][0] = field[0][0] |