結果
| 問題 |
No.2052 Indegree
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-25 08:08:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 281 ms |
| コンパイル使用メモリ | 82,096 KB |
| 実行使用メモリ | 67,084 KB |
| 最終ジャッジ日時 | 2024-12-22 12:45:38 |
| 合計ジャッジ時間 | 2,289 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 7 RE * 13 |
ソースコード
N,M = map(int,input().split())
G = [[] for _ in range(N)]
for i in range(M):
A,B = map(int,input().split())
G[B].append(A)
cnt = 0
for i in G:
if not i:
cnt+=1
print(cnt)