結果

問題 No.2052 Indegree
ユーザー titan23
提出日時 2022-10-06 23:43:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-06-11 10:05:34
合計ジャッジ時間 1,856 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
G = [0] * n
for _ in range(m):
  a, b = map(int, input().split())
  a -= 1
  b -= 1
  G[b] = 1
print(G.count(0))
0