diff --git a/LibreOJ/6282/6282.cpp b/LibreOJ/6282/6282.cpp new file mode 100644 index 00000000..4f771fe4 --- /dev/null +++ b/LibreOJ/6282/6282.cpp @@ -0,0 +1,34 @@ +#include +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +const int N = 1e5 + 5; + +int n; +std::vector 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; +} diff --git a/LibreOJ/6282/data/a1.in b/LibreOJ/6282/data/a1.in new file mode 100644 index 00000000..9a0dce5b --- /dev/null +++ b/LibreOJ/6282/data/a1.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0c49765353d4e19a0811ff3a8c16454e07a74ca45fddf02dc629419867b5ab2 +size 106630 diff --git a/LibreOJ/6282/data/a1.out b/LibreOJ/6282/data/a1.out new file mode 100644 index 00000000..c6be1e1b --- /dev/null +++ b/LibreOJ/6282/data/a1.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75fb486e19304e4714b8d379b9090fd850d0ebb85c9f6939b1ab773b028d90d8 +size 12096 diff --git a/LibreOJ/6282/data/a10.in b/LibreOJ/6282/data/a10.in new file mode 100644 index 00000000..c663ce99 --- /dev/null +++ b/LibreOJ/6282/data/a10.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5dbeaff09872897d3a873f2b79e9c4feb988f5d0e4005be68b2000e506d8eb4 +size 2466672 diff --git a/LibreOJ/6282/data/a10.out b/LibreOJ/6282/data/a10.out new file mode 100644 index 00000000..0b935bf0 --- /dev/null +++ b/LibreOJ/6282/data/a10.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c99fef58ece95d9c62c5ab3e695d66bf6d518d06ed05ddde26e84689f1d91206 +size 146776 diff --git a/LibreOJ/6282/data/a2.in b/LibreOJ/6282/data/a2.in new file mode 100644 index 00000000..9a0dce5b --- /dev/null +++ b/LibreOJ/6282/data/a2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0c49765353d4e19a0811ff3a8c16454e07a74ca45fddf02dc629419867b5ab2 +size 106630 diff --git a/LibreOJ/6282/data/a2.out b/LibreOJ/6282/data/a2.out new file mode 100644 index 00000000..c6be1e1b --- /dev/null +++ b/LibreOJ/6282/data/a2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75fb486e19304e4714b8d379b9090fd850d0ebb85c9f6939b1ab773b028d90d8 +size 12096 diff --git a/LibreOJ/6282/data/a3.in b/LibreOJ/6282/data/a3.in new file mode 100644 index 00000000..8f7a6467 --- /dev/null +++ b/LibreOJ/6282/data/a3.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62140209d48c68471d8adb0d7c9afd64d7c43899bbe26e1bd86084e510750a52 +size 106787 diff --git a/LibreOJ/6282/data/a3.out b/LibreOJ/6282/data/a3.out new file mode 100644 index 00000000..1b36a0fb --- /dev/null +++ b/LibreOJ/6282/data/a3.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c8a185b9dea5a62ad71c4e75ce431e5dd8e8bb3991ab2875c380287e0a496fb +size 12405 diff --git a/LibreOJ/6282/data/a4.in b/LibreOJ/6282/data/a4.in new file mode 100644 index 00000000..67701cf7 --- /dev/null +++ b/LibreOJ/6282/data/a4.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e36644e2a5c7e0107564826a55d82e38d8054685a4f441be584010c2f5da30e2 +size 1166550 diff --git a/LibreOJ/6282/data/a4.out b/LibreOJ/6282/data/a4.out new file mode 100644 index 00000000..84795936 --- /dev/null +++ b/LibreOJ/6282/data/a4.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb9195ea8249c4f8587b2921f12d75a47f67af01a2d013c0e2fd417a7a905d32 +size 127288 diff --git a/LibreOJ/6282/data/a5.in b/LibreOJ/6282/data/a5.in new file mode 100644 index 00000000..0069aba1 --- /dev/null +++ b/LibreOJ/6282/data/a5.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a30a5d249b651e5d31de93c67d0422967fd03bac62a8fbfe0c7146da107b5e7 +size 1166917 diff --git a/LibreOJ/6282/data/a5.out b/LibreOJ/6282/data/a5.out new file mode 100644 index 00000000..a3073f0e --- /dev/null +++ b/LibreOJ/6282/data/a5.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4457aa3e7c5b07f5a8bc7d8190e973b7ea959369f67006bd5d2d2a9ada2f819 +size 128524 diff --git a/LibreOJ/6282/data/a6.in b/LibreOJ/6282/data/a6.in new file mode 100644 index 00000000..55b47108 --- /dev/null +++ b/LibreOJ/6282/data/a6.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4422d8e0339f0cca21229d696a0cff59a9782a601d860b3e9e7ac95bdec58755 +size 1166429 diff --git a/LibreOJ/6282/data/a6.out b/LibreOJ/6282/data/a6.out new file mode 100644 index 00000000..3bc7fd5e --- /dev/null +++ b/LibreOJ/6282/data/a6.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68313eb7ef1833a514a8aa499d48d3088a5920e4dbf9487bc12acccc1001387c +size 126274 diff --git a/LibreOJ/6282/data/a7.in b/LibreOJ/6282/data/a7.in new file mode 100644 index 00000000..4fc7c7eb --- /dev/null +++ b/LibreOJ/6282/data/a7.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f984f228613850789ef45667790a47414a1e880e2ebd1069075827fd7ebf5498 +size 1166901 diff --git a/LibreOJ/6282/data/a7.out b/LibreOJ/6282/data/a7.out new file mode 100644 index 00000000..3014ac0d --- /dev/null +++ b/LibreOJ/6282/data/a7.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:828431e8541f09e8999da70cc5f385404ddc1bbde3d96e4a0ee8744996e8d2c2 +size 127880 diff --git a/LibreOJ/6282/data/a8.in b/LibreOJ/6282/data/a8.in new file mode 100644 index 00000000..4e947112 --- /dev/null +++ b/LibreOJ/6282/data/a8.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14bc8c02a4fe1f46beafa6bae3087f69e628d061cffc9d1024f51c3358d6368f +size 2466981 diff --git a/LibreOJ/6282/data/a8.out b/LibreOJ/6282/data/a8.out new file mode 100644 index 00000000..3e4da43f --- /dev/null +++ b/LibreOJ/6282/data/a8.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:497972a636c3f0aaf8a4d2188837ed87063d6cb926e147ccd22013529a628d3b +size 146687 diff --git a/LibreOJ/6282/data/a9.in b/LibreOJ/6282/data/a9.in new file mode 100644 index 00000000..e12e1fc0 --- /dev/null +++ b/LibreOJ/6282/data/a9.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93fdaa41eb85272f85c5301013d6462a88087633d0ef60c46b760c8871ae9ec7 +size 2466995 diff --git a/LibreOJ/6282/data/a9.out b/LibreOJ/6282/data/a9.out new file mode 100644 index 00000000..027c9a4f --- /dev/null +++ b/LibreOJ/6282/data/a9.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16b505d8711804a2af3b1c00df68f06104e162a36e9b7fb9de226765081f3cf4 +size 146676