結果
| 問題 | No.2416 vs Slime |
| コンテスト | |
| ユーザー |
rinrion
|
| 提出日時 | 2023-08-12 13:57:09 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 2,497 ms |
| コンパイル使用メモリ | 248,764 KB |
| 実行使用メモリ | 9,876 KB |
| 最終ジャッジ日時 | 2026-09-26 17:49:31 |
| 合計ジャッジ時間 | 4,531 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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