結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
applejam
|
| 提出日時 | 2025-01-25 12:38:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 517 bytes |
| コンパイル時間 | 2,793 ms |
| コンパイル使用メモリ | 132,084 KB |
| 実行使用メモリ | 25,984 KB |
| 平均クエリ数 | 30.00 |
| 最終ジャッジ日時 | 2025-01-25 22:06:18 |
| 合計ジャッジ時間 | 6,594 ms |
|
ジャッジサーバーID (参考情報) |
judge9 / judge8 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using mint = modint998244353;
#define rep(i, n) for (int i = 0; i< (int)(n); i++)
int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
ll ans = 1e9;
rep(i, 30){
cout << ans << endl;
int r; cin >> r;
if(r == -1){
return 0;
}else if(r == 0){
ans /= 2;
}
}
return 0;
}
applejam