提出 #41743398


ソースコード 拡げる

n,m = map(int,input().split())
p =[]
for i in range(n-1):
    for j in range(i+1,n):
        p.append([i+1,j+1])
for i in range(m):
    c = list(map(int,input().split()))
    for j in range(n-1):
        t = [c[j],c[j+1]]
        t.sort()
        if t in p:
            p.remove(t)
print(len(p))

提出情報

提出日時
問題 B - Discord
ユーザ nnsmer
言語 PyPy3 (7.3.0)
得点 200
コード長 307 Byte
結果 AC
実行時間 213 ms
メモリ 73740 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 14
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_small_00.txt, 01_small_01.txt, 01_small_02.txt, 01_small_03.txt, 01_small_04.txt, 02_rnd_00.txt, 02_rnd_01.txt, 02_rnd_02.txt, 03_same_00.txt, 03_same_01.txt, 03_same_02.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 153 ms 61292 KiB
00_sample_01.txt AC 48 ms 61544 KiB
00_sample_02.txt AC 49 ms 62244 KiB
01_small_00.txt AC 48 ms 61360 KiB
01_small_01.txt AC 46 ms 61352 KiB
01_small_02.txt AC 46 ms 61508 KiB
01_small_03.txt AC 48 ms 61764 KiB
01_small_04.txt AC 49 ms 61580 KiB
02_rnd_00.txt AC 112 ms 73448 KiB
02_rnd_01.txt AC 98 ms 73448 KiB
02_rnd_02.txt AC 111 ms 73740 KiB
03_same_00.txt AC 47 ms 62160 KiB
03_same_01.txt AC 204 ms 73612 KiB
03_same_02.txt AC 213 ms 73584 KiB