mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:11:58 +00:00
parent
6ba659f32f
commit
2e8f5b2bfd
34
LibreOJ/6282/6282.cpp
Normal file
34
LibreOJ/6282/6282.cpp
Normal 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
BIN
LibreOJ/6282/data/a9.out
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user