Please read the new rule regarding the restriction on the use of AI tools. ×

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        o += 1 if elem == 1:             s[u].append(o) w = list(map(int,input().split())) for op in s:     for elem in op:         
Difference between ru1 and ru2, changed 57 character(s)
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 Первая редакция (сохранено в черновиках)