mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-08 13:18:46 +00:00
3834. [Poi2014] Solar Panels
https://hydro.ac/d/bzoj/record/63a45fb1b053be17396a0753
This commit is contained in:
parent
db8ac77963
commit
47ffa5ada6
27
BZOJ/3834/3834.cpp
Normal file
27
BZOJ/3834/3834.cpp
Normal 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
BIN
BZOJ/3834/data/9.out
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user