結果

問題 No.2108 Red or Blue and Purple Tree
ユーザー 5ju5ju
提出日時 2022-11-23 16:22:32
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 1,581 ms
コンパイル使用メモリ 166,392 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-25 01:15:36
合計ジャッジ時間 4,294 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int N, K, M;
    cin >> N >> K >> M;
 
    int ans = 0;
    for (int i = 0; i < M; i++) {
        int a, b, c;
        cin >> a >> b >> c;
 
        if (a == N - 1 - K && b == N - 1 - K && c == K) {
            ans++;
        }
    }
 
    cout << ans << endl;
 
    return 0;
}
0