2016-09-20から1日間の記事一覧
はい。 http://codeforces.com/contest/614 A. Link/Cut Tree ざっくりと大意 ・lからrの区間のkの累乗数を出力する。 Python l,r,k=map(int,raw_input().split()) t=f=0 while 1: tmp=k**t if l<=tmp<=r: f=1 print tmp, elif tmp>r: break t+=1 if f==0: p…
はい。 http://codeforces.com/contest/614 A. Link/Cut Tree ざっくりと大意 ・lからrの区間のkの累乗数を出力する。 Python l,r,k=map(int,raw_input().split()) t=f=0 while 1: tmp=k**t if l<=tmp<=r: f=1 print tmp, elif tmp>r: break t+=1 if f==0: p…