結果
| 問題 |
No.2416 vs Slime
|
| コンテスト | |
| ユーザー |
rinrion
|
| 提出日時 | 2023-08-12 13:57:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 3,618 ms |
| コンパイル使用メモリ | 231,080 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-19 16:45:24 |
| 合計ジャッジ時間 | 4,591 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 30 WA * 7 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
int main(){
long long h, a;
cin >> h >> a;
queue <long long > q;
q.push(h);
int ans = 0;
while(!q.empty()){
ans ++;
int H = q.front();
q.pop();
if(H / a > 0){
q.push(H / a);
q.push(H / a);
}
}
cout << ans << endl;
}
rinrion