結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-02 22:31:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 614 bytes |
| コンパイル時間 | 610 ms |
| コンパイル使用メモリ | 61,520 KB |
| 実行使用メモリ | 25,856 KB |
| 平均クエリ数 | 1.43 |
| 最終ジャッジ日時 | 2024-07-16 08:27:13 |
| 合計ジャッジ時間 | 3,584 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 24 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstring>
#include <algorithm>
#include <limits.h>
#include <cmath>
#include <time.h>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
int test = 0;
/* ここからが本編 */
int main(void)
{
int i,j,k,l;
int N,K;
int n;
int rep;
cin >> N >> K;
if(N % (K+1) == 1) {
puts("0");
cin >> rep;
}
n = K+1;
while(n < N) {
cout << n << endl;
n += K+1;
cin >> rep;
if(rep >= N) break;
}
return 0;
}