diff --git a/S2OJ/1448/1448.cpp b/S2OJ/1448/1448.cpp new file mode 100644 index 00000000..11b5c18a --- /dev/null +++ b/S2OJ/1448/1448.cpp @@ -0,0 +1,31 @@ +#include +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +int n, m; +std::set set; + +int main() { + cin >> n >> m; + + set.insert(0); + set.insert(n); + + while (m--) { + int k; + + cin >> k; + + set.insert(k); + + int prev = *--set.lower_bound(k), + next = *set.upper_bound(k); + + cout << (k - prev) * (next - k) << endl; + } + + return 0; +} diff --git a/S2OJ/1448/data/problem.conf b/S2OJ/1448/data/problem.conf new file mode 100644 index 00000000..e690449c --- /dev/null +++ b/S2OJ/1448/data/problem.conf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:102c269ab6d0790e3bac03ee2732aa70aee246dbd7ffb99b39e9ca08852e10ba +size 187 diff --git a/S2OJ/1448/data/sunflower1.in b/S2OJ/1448/data/sunflower1.in new file mode 100644 index 00000000..9385d455 --- /dev/null +++ b/S2OJ/1448/data/sunflower1.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3e1ac75ab87f31707bb64b5043647cba48343eefb90b80eadd21501f3756b86 +size 117 diff --git a/S2OJ/1448/data/sunflower1.out b/S2OJ/1448/data/sunflower1.out new file mode 100644 index 00000000..5d284c2d --- /dev/null +++ b/S2OJ/1448/data/sunflower1.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09ebc2c4c06d92eff4457d8321a54bad42c90f8658e6b06b92cb5072e658b7d4 +size 100 diff --git a/S2OJ/1448/data/sunflower10.in b/S2OJ/1448/data/sunflower10.in new file mode 100644 index 00000000..e40f1337 --- /dev/null +++ b/S2OJ/1448/data/sunflower10.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1448309b2bce7fd4c78240f52fedd0f73f4a14bc42b7b342ac5d10a211bf66ce +size 19437 diff --git a/S2OJ/1448/data/sunflower10.out b/S2OJ/1448/data/sunflower10.out new file mode 100644 index 00000000..f2eaab85 --- /dev/null +++ b/S2OJ/1448/data/sunflower10.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c54c19b65fc165a7e0e154e08942f0118466bd8a83144c63b25ab4a49b42e30 +size 12000 diff --git a/S2OJ/1448/data/sunflower11.in b/S2OJ/1448/data/sunflower11.in new file mode 100644 index 00000000..f7665ba2 --- /dev/null +++ b/S2OJ/1448/data/sunflower11.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ef2a752deffee18f336580f89564d0c6228c7cc3eaf2521e0949217bb5fa61f +size 581497 diff --git a/S2OJ/1448/data/sunflower11.out b/S2OJ/1448/data/sunflower11.out new file mode 100644 index 00000000..d951590c --- /dev/null +++ b/S2OJ/1448/data/sunflower11.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b1f449e4f16961579f672ff53a79d388453f8b359b6a95d029f2faee2cb7180 +size 354092 diff --git a/S2OJ/1448/data/sunflower12.in b/S2OJ/1448/data/sunflower12.in new file mode 100644 index 00000000..359627d0 --- /dev/null +++ b/S2OJ/1448/data/sunflower12.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dad89869db6e8e536cdba95c9776616441bca0ae067f011fa543307bb638e48 +size 581497 diff --git a/S2OJ/1448/data/sunflower12.out b/S2OJ/1448/data/sunflower12.out new file mode 100644 index 00000000..031ce615 --- /dev/null +++ b/S2OJ/1448/data/sunflower12.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5c520c77e40b83a91e43eedcc44ddd6a140780cb419822602472f7392cae73a +size 354074 diff --git a/S2OJ/1448/data/sunflower13.in b/S2OJ/1448/data/sunflower13.in new file mode 100644 index 00000000..beac82b2 --- /dev/null +++ b/S2OJ/1448/data/sunflower13.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f45c7fac2d6d48a6a159b6761703eccdfb1a8ca2854639809ea4bbae451a9ca +size 581497 diff --git a/S2OJ/1448/data/sunflower13.out b/S2OJ/1448/data/sunflower13.out new file mode 100644 index 00000000..fc36d891 --- /dev/null +++ b/S2OJ/1448/data/sunflower13.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d494f6f6f5e7e3bf2a208e1682a3b55d1b4f0ceb902b96e0e67235a7d2e15e80 +size 354107 diff --git a/S2OJ/1448/data/sunflower14.in b/S2OJ/1448/data/sunflower14.in new file mode 100644 index 00000000..10d2a8db --- /dev/null +++ b/S2OJ/1448/data/sunflower14.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fa5b20af7a80bb9719299982491392be022a25b746ecb6160df75b8de862602 +size 581497 diff --git a/S2OJ/1448/data/sunflower14.out b/S2OJ/1448/data/sunflower14.out new file mode 100644 index 00000000..c00bd7eb --- /dev/null +++ b/S2OJ/1448/data/sunflower14.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:102b891a93b62d47da955ed6a2260abc1d85dcf1b4485ca9b565c96047cf1eb7 +size 354155 diff --git a/S2OJ/1448/data/sunflower15.in b/S2OJ/1448/data/sunflower15.in new file mode 100644 index 00000000..153ec2f1 --- /dev/null +++ b/S2OJ/1448/data/sunflower15.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1d59f0076ae0da5bed474db384982bdc3d509a6ff045bcaf9b206613a334909 +size 581497 diff --git a/S2OJ/1448/data/sunflower15.out b/S2OJ/1448/data/sunflower15.out new file mode 100644 index 00000000..4116ae99 --- /dev/null +++ b/S2OJ/1448/data/sunflower15.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be4a989cb82b1fd678e2f591e4675cb13492d07f9fb534c470fac6a71e49db67 +size 354106 diff --git a/S2OJ/1448/data/sunflower16.in b/S2OJ/1448/data/sunflower16.in new file mode 100644 index 00000000..90ac10e1 --- /dev/null +++ b/S2OJ/1448/data/sunflower16.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d30364fdff27343f24a0fe7b4c9c10593fc03e0acb82be17fdc776b2dea8b082 +size 581497 diff --git a/S2OJ/1448/data/sunflower16.out b/S2OJ/1448/data/sunflower16.out new file mode 100644 index 00000000..dc4d6c79 --- /dev/null +++ b/S2OJ/1448/data/sunflower16.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29a4e86f3758052f04980250d2f2b15a794b8fdd3a32b212a2fa6d33e8c659fc +size 354075 diff --git a/S2OJ/1448/data/sunflower17.in b/S2OJ/1448/data/sunflower17.in new file mode 100644 index 00000000..78e7e491 --- /dev/null +++ b/S2OJ/1448/data/sunflower17.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07b6c318339d962028333094611ce24a75e1c1f35fa88fd5551f103c9b59d2c8 +size 581497 diff --git a/S2OJ/1448/data/sunflower17.out b/S2OJ/1448/data/sunflower17.out new file mode 100644 index 00000000..ec8faaad --- /dev/null +++ b/S2OJ/1448/data/sunflower17.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57a55cbf787bde4d54740102bdff6bd170526ae30cc3cb2e6eb93952daabecf8 +size 354156 diff --git a/S2OJ/1448/data/sunflower18.in b/S2OJ/1448/data/sunflower18.in new file mode 100644 index 00000000..6980c5e4 --- /dev/null +++ b/S2OJ/1448/data/sunflower18.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:111d9527bfa6cdc72d262aae159f4b78ca7ae3dac139e1fc0f8b0e305fb47bac +size 581497 diff --git a/S2OJ/1448/data/sunflower18.out b/S2OJ/1448/data/sunflower18.out new file mode 100644 index 00000000..a640bc5e --- /dev/null +++ b/S2OJ/1448/data/sunflower18.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a61ba7702ed349008a05503920a6a500ef48b3131336fd04207a254763ceb77 +size 354142 diff --git a/S2OJ/1448/data/sunflower19.in b/S2OJ/1448/data/sunflower19.in new file mode 100644 index 00000000..b991a3f0 --- /dev/null +++ b/S2OJ/1448/data/sunflower19.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fe0ba995e102a7859fab2bdb28266d03964316b1f5894fa620bc1e529f91d81 +size 581497 diff --git a/S2OJ/1448/data/sunflower19.out b/S2OJ/1448/data/sunflower19.out new file mode 100644 index 00000000..dedc9c3c --- /dev/null +++ b/S2OJ/1448/data/sunflower19.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b14883185d46288b865a3567cccf94968b00948aa3bcf26f10958b32a2d868e +size 354095 diff --git a/S2OJ/1448/data/sunflower2.in b/S2OJ/1448/data/sunflower2.in new file mode 100644 index 00000000..96909721 --- /dev/null +++ b/S2OJ/1448/data/sunflower2.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:048f760eebc8c2a7236e359806b338df22e0c429a5b22ed2baa7b3af3cbf144c +size 117 diff --git a/S2OJ/1448/data/sunflower2.out b/S2OJ/1448/data/sunflower2.out new file mode 100644 index 00000000..32e89091 --- /dev/null +++ b/S2OJ/1448/data/sunflower2.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0aafdad18b4454636b5f4c69688aa039b87755ee1248dc895a35d6f6fde22808 +size 104 diff --git a/S2OJ/1448/data/sunflower20.in b/S2OJ/1448/data/sunflower20.in new file mode 100644 index 00000000..b877c8d0 --- /dev/null +++ b/S2OJ/1448/data/sunflower20.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7f0fec77b5e64ec3ec4e716cc745a46aff5e78982fa08a2cb3010ec70717511 +size 581497 diff --git a/S2OJ/1448/data/sunflower20.out b/S2OJ/1448/data/sunflower20.out new file mode 100644 index 00000000..db8e4465 --- /dev/null +++ b/S2OJ/1448/data/sunflower20.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd337a84073f6bfbf7aed328a00e1ad63322a204512bac0add671efe5820303d +size 354161 diff --git a/S2OJ/1448/data/sunflower3.in b/S2OJ/1448/data/sunflower3.in new file mode 100644 index 00000000..fd96f967 --- /dev/null +++ b/S2OJ/1448/data/sunflower3.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be92dc9504b3375db4754481ba3102d74c947f87322eeb89b543b8802e59b4ce +size 626 diff --git a/S2OJ/1448/data/sunflower3.out b/S2OJ/1448/data/sunflower3.out new file mode 100644 index 00000000..76dd90e9 --- /dev/null +++ b/S2OJ/1448/data/sunflower3.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e8d5b8670358f2a6bc8582c85e99e94f3e54a16b0fe1752df307e58a31ccaa3 +size 527 diff --git a/S2OJ/1448/data/sunflower4.in b/S2OJ/1448/data/sunflower4.in new file mode 100644 index 00000000..95e5560f --- /dev/null +++ b/S2OJ/1448/data/sunflower4.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02daf7f02d92b0f1bd578ccd259b2a2ccb1492b163d7176149d10a939e7fe60f +size 623 diff --git a/S2OJ/1448/data/sunflower4.out b/S2OJ/1448/data/sunflower4.out new file mode 100644 index 00000000..6192bacb --- /dev/null +++ b/S2OJ/1448/data/sunflower4.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a75a9dc4063b5b1471354aadccb9d3a79741ee8203c76e745bb0bb000725002f +size 525 diff --git a/S2OJ/1448/data/sunflower5.in b/S2OJ/1448/data/sunflower5.in new file mode 100644 index 00000000..248be084 --- /dev/null +++ b/S2OJ/1448/data/sunflower5.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9f2570bec00167660dfc2c852e2919e40a372e77f37c785a2c98b76f5e0ceda +size 811 diff --git a/S2OJ/1448/data/sunflower5.out b/S2OJ/1448/data/sunflower5.out new file mode 100644 index 00000000..b89edac3 --- /dev/null +++ b/S2OJ/1448/data/sunflower5.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d06e302fc2a139f616806a28ec421d15b1d0906c01e25729200c05028787af7 +size 892 diff --git a/S2OJ/1448/data/sunflower6.in b/S2OJ/1448/data/sunflower6.in new file mode 100644 index 00000000..fb48bd5e --- /dev/null +++ b/S2OJ/1448/data/sunflower6.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e7afae3571883f74585820b8dab0fa5b799982051a67aa6ed1407a5d4765b16 +size 813 diff --git a/S2OJ/1448/data/sunflower6.out b/S2OJ/1448/data/sunflower6.out new file mode 100644 index 00000000..9a144739 --- /dev/null +++ b/S2OJ/1448/data/sunflower6.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ad1701bdbb721495188cfb8242151081a34f345bb33206d215af6ccc86f140f +size 899 diff --git a/S2OJ/1448/data/sunflower7.in b/S2OJ/1448/data/sunflower7.in new file mode 100644 index 00000000..eec75456 --- /dev/null +++ b/S2OJ/1448/data/sunflower7.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c44b4d651f50ce4b9efe53f0dc1434399c3cee6fe1b118eb7f4ab6f89f1ae40 +size 8434 diff --git a/S2OJ/1448/data/sunflower7.out b/S2OJ/1448/data/sunflower7.out new file mode 100644 index 00000000..b970e54b --- /dev/null +++ b/S2OJ/1448/data/sunflower7.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f057a95cddc47daf8113e90578ad3983169459f1ea55486cee9e05f53ce9842c +size 6195 diff --git a/S2OJ/1448/data/sunflower8.in b/S2OJ/1448/data/sunflower8.in new file mode 100644 index 00000000..5dcd1752 --- /dev/null +++ b/S2OJ/1448/data/sunflower8.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba43f59d5cb6448fc09d0e0f679f8fe56ed6c4d9ab627f32408ce123baba33a6 +size 8423 diff --git a/S2OJ/1448/data/sunflower8.out b/S2OJ/1448/data/sunflower8.out new file mode 100644 index 00000000..2cc87ed6 --- /dev/null +++ b/S2OJ/1448/data/sunflower8.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c1c08c06348b71d219cfb090f9c4f4e90f838ac96f4db7248ef03bd72d33a56 +size 6189 diff --git a/S2OJ/1448/data/sunflower9.in b/S2OJ/1448/data/sunflower9.in new file mode 100644 index 00000000..b1a56bd4 --- /dev/null +++ b/S2OJ/1448/data/sunflower9.in @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:becfc73ec3ea8ed0715cdbdff787dfd8c660fb2e86c15677d99b633d76c2f536 +size 10539 diff --git a/S2OJ/1448/data/sunflower9.out b/S2OJ/1448/data/sunflower9.out new file mode 100644 index 00000000..5d0e32c1 --- /dev/null +++ b/S2OJ/1448/data/sunflower9.out @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3224f47393cb33aa854feb1629f9f33756f7cee93473fbd4acdd19d407b9c71 +size 11189