結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
ty70
|
| 提出日時 | 2015-12-14 14:29:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 372 bytes |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 53,980 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 3.70 |
| 最終ジャッジ日時 | 2024-07-16 22:01:14 |
| 合計ジャッジ時間 | 4,013 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
#include <iostream>
#define rep(i,n) for(int i=0;i<(n);i++)
#define ALL(A) A.begin(), A.end()
using namespace std;
typedef long long ll;
int main()
{
ios_base::sync_with_stdio(0);
int n, k; cin >> n >> k;
int a, b;
a = (n-1) % (k+1);
cout << a << endl;
while(true){
cin >> b;
if (b >= n) break;
a += (k+1);
cout << a << endl;
} // end while
return 0;
}
ty70