結果

問題 No.2052 Indegree
ユーザー lllllll88938494
提出日時 2022-09-12 10:31:36
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 216 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 65,152 KB
最終ジャッジ日時 2024-11-29 07:47:59
合計ジャッジ時間 2,510 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 1
other AC * 7 RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())

nyu=[[]for i in range(n)]

for i in range(m):
    a,b= map(int,input().split())
    nyu[b].append(a)
    
    
cnt=0
for i in nyu:
    if len(i) == 0:
        cnt+= 1
        
print(cnt)
0