結果

問題 No.2052 Indegree
ユーザー helloprahellopra
提出日時 2022-09-25 08:08:35
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 204 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,700 KB
実行使用メモリ 79,188 KB
最終ジャッジ日時 2023-08-24 00:48:19
合計ジャッジ時間 4,771 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,028 KB
testcase_01 RE -
testcase_02 AC 75 ms
71,404 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 72 ms
71,408 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 71 ms
71,272 KB
testcase_14 RE -
testcase_15 AC 71 ms
71,408 KB
testcase_16 AC 73 ms
71,232 KB
testcase_17 AC 73 ms
71,232 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 73 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0