0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-08 14:58:48 +00:00

chore: add data for LibreOJ

This commit is contained in:
Baoshuo Ren 2022-05-28 20:25:28 +08:00
parent addb35edac
commit 9e19faa336
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68
651 changed files with 2337 additions and 0 deletions

2
.lfsconfig Normal file
View File

@ -0,0 +1,2 @@
[lfs]
url = https://git.sb/baoshuo/OI-codes.git/info/lfs

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

Binary file not shown.

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

Binary file not shown.

BIN
LibreOJ/1/data/2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/1/data/2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/1/data/3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/1/data/3.out (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,40 @@
#include<cstdio>
#include<algorithm>
using namespace std;
const int MXN = 100000;
int n, m;
int a[MXN];
int check (int m) {
int t, ans;
t = 0;
ans = 1;
for (int i = 0; i < n; i++) {
if (t + a[i] <= m)
t += a[i];
else {
t = a[i];
ans ++;
}
}
return ans;
}
int main() {
freopen("divide_b4.in", "r", stdin);
freopen("divide_b4.out", "w", stdout);
scanf ("%d%d", &n, &m);
int l = 0;
int r = 0;
for (int i = 0; i < n; i++) {
scanf ("%d", &a[i]);
r += a[i];
l = max (l, a[i]);
}
while (l < r) {
int mid = (l + r) / 2;
if (check(mid) <= m)
r = mid;
else
l = mid + 1;
}
printf ("%d\n", l);
}

BIN
LibreOJ/10014/data/divide_b1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10014/data/divide_b5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars10.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10114/data/stars9.out (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
@echo off
if "%1"=="" goto loop
echo TEST
echo Test%1
copy stars%1.in stars.in >nul
time <enter
stars
time <enter
fc stars%1.out stars.out
pause
del stars.in
del stars.out
goto end
:loop
for %%i in (1 2 3 4 5 6 7 8 9 10) do call %0 %%i
:end

BIN
LibreOJ/10115/data/tree1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree10.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10115/data/tree9.out (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
@echo off
if "%1"=="" goto loop
copy maxnumber%1.in maxnumber.in >nul
echo Problem Test
echo Data %1
time<enter
maxnumber.exe
time<enter
fc maxnumber.out maxnumber%1.out
del maxnumber.in
del maxnumber.out
pause
goto end
:loop
for %%i in (1 2 3 4 5 6 7 8) do call %0 %%i
:end

BIN
LibreOJ/10127/data/maxnumber1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10127/data/maxnumber8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel1.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel10.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10128/data/travel9.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10129/data/seq1.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10129/data/seq1.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10129/data/seq10.ans (Stored with Git LFS) Normal file

Binary file not shown.

BIN
LibreOJ/10129/data/seq10.in (Stored with Git LFS) Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More