mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-28 05:51:59 +00:00
41 lines
726 B (Stored with Git LFS)
C++
41 lines
726 B (Stored with Git LFS)
C++
/**
|
|
* @file S2OJ/1991/val.cpp
|
|
* @author Baoshuo <i@baoshuo.ren>
|
|
* @url https://baoshuo.ren
|
|
* @date 2023-03-30
|
|
* @license GPL-3.0
|
|
*/
|
|
|
|
#include "testlib.h"
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
int main() {
|
|
registerValidation();
|
|
|
|
int n = inf.readInt(1, 10000, "n");
|
|
inf.readSpace();
|
|
int m = inf.readInt(1, 10000, "m");
|
|
inf.readEoln();
|
|
|
|
for (int i = 1; i <= n; i++) {
|
|
inf.readInt(0, 1000, std::string("a[") + std::to_string(i) + "]");
|
|
|
|
if (i < n) inf.readSpace();
|
|
}
|
|
|
|
inf.readEoln();
|
|
|
|
for (int i = 1; i <= m; i++) {
|
|
inf.readInt(1, n, "u");
|
|
inf.readSpace();
|
|
inf.readInt(1, n, "v");
|
|
inf.readEoln();
|
|
}
|
|
|
|
inf.readEof();
|
|
|
|
return 0;
|
|
}
|