結果

問題 No.479 頂点は要らない
ユーザー compass19compass19
提出日時 2017-02-16 21:28:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 459 ms / 1,500 ms
コード長 236 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 52,564 KB
最終ジャッジ日時 2023-08-28 17:46:14
合計ジャッジ時間 7,280 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,772 KB
testcase_01 AC 14 ms
7,860 KB
testcase_02 AC 15 ms
7,808 KB
testcase_03 AC 15 ms
7,780 KB
testcase_04 AC 14 ms
7,956 KB
testcase_05 AC 14 ms
7,812 KB
testcase_06 AC 14 ms
7,948 KB
testcase_07 AC 14 ms
7,956 KB
testcase_08 AC 16 ms
7,784 KB
testcase_09 AC 14 ms
7,956 KB
testcase_10 AC 14 ms
7,748 KB
testcase_11 AC 14 ms
7,784 KB
testcase_12 AC 14 ms
7,896 KB
testcase_13 AC 14 ms
7,832 KB
testcase_14 AC 14 ms
7,944 KB
testcase_15 AC 14 ms
7,788 KB
testcase_16 AC 15 ms
7,908 KB
testcase_17 AC 14 ms
7,844 KB
testcase_18 AC 14 ms
7,816 KB
testcase_19 AC 18 ms
8,360 KB
testcase_20 AC 17 ms
8,656 KB
testcase_21 AC 17 ms
7,784 KB
testcase_22 AC 17 ms
8,360 KB
testcase_23 AC 17 ms
8,260 KB
testcase_24 AC 17 ms
8,348 KB
testcase_25 AC 17 ms
8,344 KB
testcase_26 AC 449 ms
45,592 KB
testcase_27 AC 448 ms
45,560 KB
testcase_28 AC 459 ms
52,564 KB
testcase_29 AC 348 ms
30,644 KB
testcase_30 AC 351 ms
30,556 KB
testcase_31 AC 351 ms
30,668 KB
testcase_32 AC 353 ms
30,604 KB
testcase_33 AC 314 ms
29,812 KB
testcase_34 AC 350 ms
30,680 KB
testcase_35 AC 316 ms
22,768 KB
testcase_36 AC 205 ms
15,880 KB
testcase_37 AC 343 ms
31,648 KB
testcase_38 AC 288 ms
27,648 KB
testcase_39 AC 215 ms
24,028 KB
testcase_40 AC 268 ms
30,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
e={i:set() for i in range(n)} 
a=set()
for _ in range(m):
    s,l=map(int,input().split())
    e[l].add(s)
for i in range(n-1, -1, -1):
    if i not in a:a|=e[i]
r=0
for i in a:r|=1<<i
print(format(r, 'b'))
0