結果
| 問題 | No.1703 Much Matching |
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2021-10-02 10:23:05 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 530 bytes |
| 記録 | |
| コンパイル時間 | 5,298 ms |
| コンパイル使用メモリ | 259,648 KB |
| 実行使用メモリ | 41,408 KB |
| 最終ジャッジ日時 | 2026-06-23 07:31:03 |
| 合計ジャッジ時間 | 9,676 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 35 |
ソースコード
#include "testlib.h"
#include <iostream>
#include <vector>
#include <assert.h>
using namespace std;
int main(){
registerValidation();
int N,M,Q;
N=inf.readInt(1,1000);
inf.readSpace();
M=inf.readInt(1,1000);
inf.readSpace();
Q=inf.readInt(1,N*M);
inf.readEoln();
vector<vector<int>>d(N,vector<int>(M,0));
int a,b;
for(int i=0;i<Q;i++){
a=inf.readInt(1,N);
inf.readSpace();
b=inf.readInt(1,M);
inf.readEoln();
assert(d.at(a-1).at(b-1)==0);
d.at(a-1).at(b-1)=1;
}
inf.readEof();
}
harurun