n = int(input()) s = [] for i in range(n): s.append([]) for u in range(n): f = list(map(int,input().split())) o = 0 for elem in f: o += 1 if elem == 1: s[u].append(o) w = list(map(int,input().split())) for op in s: for elem in op:

Revision ru1, by ColobocCodeforces, 2020-02-01 14:06:48

n = int(input()) s = [] for i in range(n): s.append([]) for u in range(n): f = list(map(int,input().split())) o = 0 for elem in f: o += 1 if elem == 1: s[u].append(o) w = list(map(int,input().split())) for op in s: for elem in op:

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru2 Russian ColobocCodeforces 2020-02-01 14:07:15 57 (опубликовано)
ru1 Russian ColobocCodeforces 2020-02-01 14:06:48 590 Первая редакция (сохранено в черновиках)