結果

問題 No.479 頂点は要らない
ユーザー pluto77pluto77
提出日時 2017-01-30 09:22:27
言語 Python2
(2.7.18)
結果
AC  
実行時間 623 ms / 1,500 ms
コード長 264 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 6,728 KB
実行使用メモリ 28,528 KB
最終ジャッジ日時 2023-08-25 15:12:54
合計ジャッジ時間 8,631 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,996 KB
testcase_01 AC 11 ms
5,988 KB
testcase_02 AC 11 ms
6,044 KB
testcase_03 AC 11 ms
5,888 KB
testcase_04 AC 11 ms
5,944 KB
testcase_05 AC 11 ms
5,844 KB
testcase_06 AC 11 ms
5,852 KB
testcase_07 AC 11 ms
5,984 KB
testcase_08 AC 10 ms
5,896 KB
testcase_09 AC 11 ms
5,888 KB
testcase_10 AC 11 ms
5,980 KB
testcase_11 AC 10 ms
5,944 KB
testcase_12 AC 11 ms
6,044 KB
testcase_13 AC 11 ms
6,032 KB
testcase_14 AC 11 ms
5,844 KB
testcase_15 AC 11 ms
5,928 KB
testcase_16 AC 11 ms
5,980 KB
testcase_17 AC 11 ms
6,000 KB
testcase_18 AC 11 ms
5,884 KB
testcase_19 AC 14 ms
6,152 KB
testcase_20 AC 14 ms
6,156 KB
testcase_21 AC 14 ms
6,016 KB
testcase_22 AC 14 ms
6,108 KB
testcase_23 AC 14 ms
6,020 KB
testcase_24 AC 14 ms
5,968 KB
testcase_25 AC 14 ms
6,076 KB
testcase_26 AC 621 ms
25,348 KB
testcase_27 AC 623 ms
25,256 KB
testcase_28 AC 572 ms
28,528 KB
testcase_29 AC 413 ms
24,812 KB
testcase_30 AC 409 ms
24,916 KB
testcase_31 AC 412 ms
24,892 KB
testcase_32 AC 411 ms
24,936 KB
testcase_33 AC 417 ms
22,480 KB
testcase_34 AC 475 ms
23,916 KB
testcase_35 AC 485 ms
22,484 KB
testcase_36 AC 297 ms
16,568 KB
testcase_37 AC 451 ms
23,276 KB
testcase_38 AC 381 ms
21,412 KB
testcase_39 AC 258 ms
17,304 KB
testcase_40 AC 297 ms
18,552 KB
権限があれば一括ダウンロードができます

ソースコード

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

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

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