提出 #73625106


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long a, b, k;
  cin >> a >> b >> k;

  long long ans = 0;
  while(a < b){
    a *= k;
    ans++;
  }

  cout << ans << endl;
}

提出情報

提出日時
問題 C - Slimes
ユーザ liya1048
言語 C++23 (GCC 15.2.0)
得点 200
コード長 210 Byte
結果 AC
実行時間 1 ms
メモリ 3676 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 10
セット名 テストケース
Sample 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 02_max_01.txt, 03_handmade_01.txt, 04_hack_log_01.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 1 ms 3676 KiB
00_sample_02.txt AC 1 ms 3604 KiB
00_sample_03.txt AC 1 ms 3572 KiB
01_random_01.txt AC 1 ms 3640 KiB
01_random_02.txt AC 1 ms 3516 KiB
01_random_03.txt AC 1 ms 3572 KiB
01_random_04.txt AC 1 ms 3664 KiB
02_max_01.txt AC 1 ms 3516 KiB
03_handmade_01.txt AC 1 ms 3500 KiB
04_hack_log_01.txt AC 1 ms 3676 KiB