mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 14:36:27 +00:00
parent
72b9e63416
commit
19112fd610
34
S2OJ/1444/1444.cpp
Normal file
34
S2OJ/1444/1444.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
S2OJ/1444/data/a1.in
(Stored with Git LFS)
Normal file
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
BIN
S2OJ/1444/data/a9.out
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user