結果
問題 |
No.1010 折って重ねて
|
ユーザー |
|
提出日時 | 2020-04-09 23:55:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-14 02:21:52 |
合計ジャッジ時間 | 2,837 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 43 |
ソースコード
x,y,h=map(int,input().split()) h/=1000 ans=0 lower=min(x,y) higher=max(x,y) while(True): lower=min(lower,higher) higher=max(lower,higher) if(lower>h): lower/=2 h*=2 ans+=1 elif(higher>h): higher/=2 h*=2 ans+=1 else: break # print(x,y,h) #print(x,y,h) print(ans)