君はまるで砂漠に咲く、一輪の花。

僕はその花に引き寄せられる蝶。

2016-09-20から1日間の記事一覧

Codeforces Round #339 (Div.2)

はい。 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…