0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 20:08:47 +00:00

#6282. 数列分块入门 6

https://loj.ac/s/1466017
This commit is contained in:
Baoshuo Ren 2022-05-18 20:36:20 +08:00
parent 6ba659f32f
commit 2e8f5b2bfd
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68
21 changed files with 94 additions and 0 deletions

34
LibreOJ/6282/6282.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
LibreOJ/6282/data/a1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a10.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/6282/data/a9.out (Stored with Git LFS) Normal file

Binary file not shown.