結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-23 09:06:35 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| 記録 | |
| コンパイル時間 | 443 ms |
| コンパイル使用メモリ | 78,828 KB |
| 実行使用メモリ | 30,020 KB |
| 平均クエリ数 | 8.70 |
| 最終ジャッジ日時 | 2026-06-27 17:09:17 |
| 合計ジャッジ時間 | 3,945 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int n,k;cin>>n>>k;
cout << n%(k+1) << endl;
int nw = 1;
int rem = n%(k+1);
while(true){
int x;cin>>x;
if(x >= n){
return 0;
}
cout << nw*(k+1)+rem << endl;
nw++;
}
}