結果

問題 No.166 マス埋めゲーム
ユーザー pyraninepyranine
提出日時 2020-12-16 14:14:06
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 1,473 ms
コンパイル使用メモリ 166,004 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-20 09:36:29
合計ジャッジ時間 2,604 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,348 KB
testcase_04 WA -
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 1 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 1 ms
4,348 KB
testcase_19 WA -
testcase_20 AC 2 ms
4,348 KB
testcase_21 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:8:10: warning: 'H' is used uninitialized [-Wuninitialized]
    8 |   if ((H * W % N - 1) % (N + 1) == K) cout << "YES" << endl;
      |        ~~^~~
main.cpp:7:11: note: 'H' was declared here
    7 |   int64_t H, W, N, K;
      |           ^
main.cpp:8:10: warning: 'W' is used uninitialized [-Wuninitialized]
    8 |   if ((H * W % N - 1) % (N + 1) == K) cout << "YES" << endl;
      |        ~~^~~
main.cpp:7:14: note: 'W' was declared here
    7 |   int64_t H, W, N, K;
      |              ^
main.cpp:8:14: warning: 'N' is used uninitialized [-Wuninitialized]
    8 |   if ((H * W % N - 1) % (N + 1) == K) cout << "YES" << endl;
      |        ~~~~~~^~~
main.cpp:7:17: note: 'N' was declared here
    7 |   int64_t H, W, N, K;
      |                 ^
main.cpp:8:3: warning: 'K' is used uninitialized [-Wuninitialized]
    8 |   if ((H * W % N - 1) % (N + 1) == K) cout << "YES" << endl;
      |   ^~
main.cpp:7:20: note: 'K' was declared here
    7 |   int64_t H, W, N, K;
      |                    ^

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

const int64_t MOD = 1e9 + 7;

int main() {
  int64_t H, W, N, K;
  if ((H * W % N - 1) % (N + 1) == K) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}
0