結果
問題 | No.249 N言っちゃダメゲーム (2) |
ユーザー |
|
提出日時 | 2015-07-24 22:25:17 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 340 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 59,100 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 13:08:05 |
合計ジャッジ時間 | 832 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
ソースコード
#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; }