結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー |
|
提出日時 | 2015-12-16 06:48:34 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 62 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 1,378 ms |
コンパイル使用メモリ | 158,192 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 3.70 |
最終ジャッジ日時 | 2024-07-16 22:01:29 |
合計ジャッジ時間 | 5,061 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define in(T,V) T V;cin>>V;int main(){int n,k,v; cin>>n>>k;for(ll i = (n-1)%(k+1); i <= n-1; i += k+1){cout << i << endl;cin >> v;if(v >= n) break;}}