結果
問題 | No.2108 Red or Blue and Purple Tree |
ユーザー |
|
提出日時 | 2022-11-23 16:22:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 343 bytes |
コンパイル時間 | 1,400 ms |
コンパイル使用メモリ | 167,360 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 20:19:12 |
合計ジャッジ時間 | 3,818 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 7 |
ソースコード
#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; }