結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
fiord
|
| 提出日時 | 2015-07-31 22:51:29 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 1,429 ms |
| コンパイル使用メモリ | 174,724 KB |
| 実行使用メモリ | 28,976 KB |
| 平均クエリ数 | 5.73 |
| 最終ジャッジ日時 | 2026-03-30 19:27:42 |
| 合計ジャッジ時間 | 5,165 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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