0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 14:36:27 +00:00

#1444. 数列分块入门6

https://sjzezoj.com/submission/53257
This commit is contained in:
Baoshuo Ren 2022-06-23 10:31:33 +08:00
parent 72b9e63416
commit 19112fd610
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
21 changed files with 94 additions and 0 deletions

34
S2OJ/1444/1444.cpp Normal file
View File

@ -0,0 +1,34 @@
#include <iostream>
#include <vector>
using std::cin;
using std::cout;
const char endl = '\n';
const int N = 1e5 + 5;
int n;
std::vector<int> a;
int main() {
std::ios::sync_with_stdio(false);
cin >> n;
for (int i = 1, x; i <= n; i++) {
cin >> x;
a.push_back(x);
}
for (int i = 1, op, l, r, c; i <= n; i++) {
cin >> op >> l >> r >> c;
if (op == 0) {
a.insert(a.begin() + l - 1, r);
} else { // op == 1
cout << a[r - 1] << endl;
}
}
return 0;
}

BIN
S2OJ/1444/data/a1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a10.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
S2OJ/1444/data/a9.out (Stored with Git LFS) Normal file

Binary file not shown.