結果

問題 No.479 頂点は要らない
ユーザー compass19compass19
提出日時 2017-02-16 21:28:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 235 bytes
コンパイル時間 705 ms
コンパイル使用メモリ 10,816 KB
実行使用メモリ 50,192 KB
最終ジャッジ日時 2023-08-28 17:45:06
合計ジャッジ時間 5,234 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,328 KB
testcase_01 AC 15 ms
7,964 KB
testcase_02 AC 15 ms
7,884 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 15 ms
7,788 KB
testcase_05 AC 15 ms
7,856 KB
testcase_06 AC 14 ms
7,964 KB
testcase_07 AC 15 ms
7,908 KB
testcase_08 AC 15 ms
7,880 KB
testcase_09 AC 15 ms
7,804 KB
testcase_10 AC 15 ms
7,924 KB
testcase_11 AC 15 ms
7,924 KB
testcase_12 AC 16 ms
7,784 KB
testcase_13 AC 15 ms
7,812 KB
testcase_14 AC 15 ms
7,860 KB
testcase_15 AC 16 ms
7,968 KB
testcase_16 AC 15 ms
7,892 KB
testcase_17 AC 16 ms
7,832 KB
testcase_18 AC 15 ms
7,856 KB
testcase_19 AC 18 ms
8,228 KB
testcase_20 AC 20 ms
8,608 KB
testcase_21 AC 18 ms
7,852 KB
testcase_22 AC 19 ms
8,424 KB
testcase_23 AC 19 ms
8,296 KB
testcase_24 AC 19 ms
8,364 KB
testcase_25 AC 19 ms
8,316 KB
testcase_26 TLE -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

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+=2**i
print(format(r, 'b'))
0