結果
| 問題 |
No.249 N言っちゃダメゲーム (2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-24 22:25:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 340 bytes |
| コンパイル時間 | 506 ms |
| コンパイル使用メモリ | 59,100 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-08 13:08:05 |
| 合計ジャッジ時間 | 832 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
using namespace std;
int main() {
int n, k;
int win = 0;
for (int i = 0; i < 1000; i++) {
cin >> n >> k;
int tmp = (n - 1) % (k + 1);
if (1 <= tmp && tmp <= k) {
win++;
}
}
cout << win << endl;
return 0;
}