0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-16 20:05:26 +00:00

3834. [Poi2014] Solar Panels

https://hydro.ac/d/bzoj/record/63a45fb1b053be17396a0753
This commit is contained in:
Baoshuo Ren 2022-12-22 21:47:34 +08:00
parent db8ac77963
commit 47ffa5ada6
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
39 changed files with 141 additions and 0 deletions

27
BZOJ/3834/3834.cpp Normal file
View File

@ -0,0 +1,27 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int n, a, b, c, d, ans;
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> n;
while (n--) {
cin >> a >> b >> c >> d;
for (int i = 1, j; i <= std::min(b, d); i = j + 1) {
j = std::min(b / (b / i), d / (d / i));
if (b / j * j >= a && d / j * j >= c) ans = j;
}
cout << ans << endl;
}
return 0;
}

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

Binary file not shown.

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

Binary file not shown.

BIN
BZOJ/3834/data/10.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/10.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/11.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/11.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/12.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/12.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/13.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/13.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/14.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/14.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/15.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/15.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/16.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/16.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/17.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/17.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/18.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/18.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/19.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/19.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/2.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/2.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/3.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/3.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/4.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/4.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/5.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/5.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/6.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/6.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/7.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/7.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/8.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/8.out (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/9.in (Stored with Git LFS) Normal file

Binary file not shown.

BIN
BZOJ/3834/data/9.out (Stored with Git LFS) Normal file

Binary file not shown.