A. Bear and Big Brother
生活随笔
收集整理的這篇文章主要介紹了
A. Bear and Big Brother
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
還是水題,上代碼
#include <cstdio> #include <cstring> #include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <cstdio> using namespace std;int main() {int a, b,year=0;cin >> a >> b;while (a <= b){a *= 3;b *= 2;year++;}cout << year << endl;return 0; }?
?
總結
以上是生活随笔為你收集整理的A. Bear and Big Brother的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 我不是四色定理
- 下一篇: sql server row_numbe