結果

問題 No.479 頂点は要らない
ユーザー pluto77pluto77
提出日時 2017-01-30 09:14:59
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 273 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 6,512 KB
実行使用メモリ 6,164 KB
最終ジャッジ日時 2023-08-25 15:12:45
合計ジャッジ時間 4,291 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,968 KB
testcase_01 AC 11 ms
5,860 KB
testcase_02 AC 11 ms
5,944 KB
testcase_03 AC 12 ms
5,968 KB
testcase_04 AC 12 ms
5,928 KB
testcase_05 AC 11 ms
5,944 KB
testcase_06 AC 11 ms
5,928 KB
testcase_07 AC 11 ms
5,844 KB
testcase_08 AC 11 ms
5,980 KB
testcase_09 AC 11 ms
5,932 KB
testcase_10 AC 11 ms
5,872 KB
testcase_11 AC 11 ms
5,980 KB
testcase_12 AC 11 ms
5,868 KB
testcase_13 AC 11 ms
5,868 KB
testcase_14 AC 11 ms
5,936 KB
testcase_15 AC 11 ms
5,988 KB
testcase_16 AC 11 ms
5,864 KB
testcase_17 AC 11 ms
6,040 KB
testcase_18 AC 11 ms
5,988 KB
testcase_19 AC 17 ms
6,108 KB
testcase_20 AC 21 ms
6,120 KB
testcase_21 AC 14 ms
6,072 KB
testcase_22 AC 17 ms
6,164 KB
testcase_23 AC 19 ms
6,080 KB
testcase_24 AC 20 ms
5,976 KB
testcase_25 AC 17 ms
5,984 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 #

#yuki_479

n,m=map(int,raw_input().split())
g=[]
for i in xrange(m):
 a,b=map(int,raw_input().split())
 g.append([a,b])
g.sort()
g.reverse()

l=[]
for i in xrange(m):
 if g[i][1] in l:
  continue
 l.append(g[i][0])
s=set(l)
res=0

for i in s:
 res+=1<<i
print bin(res)[2:]
0