結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
fiord
|
| 提出日時 | 2015-07-31 22:51:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 300 bytes |
| コンパイル時間 | 1,285 ms |
| コンパイル使用メモリ | 158,564 KB |
| 実行使用メモリ | 25,616 KB |
| 平均クエリ数 | 5.63 |
| 最終ジャッジ日時 | 2024-07-16 05:18:51 |
| 合計ジャッジ時間 | 4,453 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int input(){
int b; cin>>b;
return b;
}
void output(int a){
cout<<a<<endl;
return;
}
int main(){
int n,k; cin>>n>>k;
cout<<(n-1)%(k+1)<<endl;
int now=0;
while(1){
int b=input();
if(b>=n) return 0;
now+=(k+1);
output(now);
}
return 0;
}
fiord