結果

問題 No.2052 Indegree
ユーザー lllllll88938494lllllll88938494
提出日時 2022-09-12 10:31:36
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 216 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 64,896 KB
最終ジャッジ日時 2024-05-06 21:36:56
合計ジャッジ時間 2,471 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,096 KB
testcase_01 RE -
testcase_02 AC 39 ms
51,840 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 37 ms
52,096 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 35 ms
51,840 KB
testcase_14 RE -
testcase_15 AC 38 ms
51,968 KB
testcase_16 AC 37 ms
52,224 KB
testcase_17 AC 37 ms
52,224 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 37 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

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