Submission #20876013


Source Code Expand

#include <bits/stdc++.h>

using namespace std;

int main(void) {
	long long A, B, W;
	cin >> A >> B >> W;
	W *= 1000;
	long long minN, maxN;
	if(W % B == 0) {
		minN = W / B;
	} else {
		minN = W / B + 1;
	}
	maxN = W / A;
	if(minN > maxN) {
		cout << "UNSATISFIABLE\n";
	} else {
		cout << minN << ' ' << maxN << '\n';
	}
	return 0;
}

Submission Info

Submission Time
Task B - Many Oranges
User waidotto
Language C++ (GCC 9.2.1)
Score 200
Code Size 360 Byte
Status AC
Exec Time 11 ms
Memory 3652 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 26
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hand_01.txt AC 11 ms 3592 KiB
hand_02.txt AC 2 ms 3552 KiB
hand_03.txt AC 2 ms 3568 KiB
hand_04.txt AC 3 ms 3440 KiB
hand_05.txt AC 3 ms 3552 KiB
hand_06.txt AC 3 ms 3412 KiB
hand_07.txt AC 2 ms 3588 KiB
random_01.txt AC 2 ms 3596 KiB
random_02.txt AC 2 ms 3596 KiB
random_03.txt AC 2 ms 3528 KiB
random_04.txt AC 2 ms 3652 KiB
random_05.txt AC 2 ms 3572 KiB
random_06.txt AC 3 ms 3596 KiB
random_07.txt AC 2 ms 3448 KiB
random_08.txt AC 4 ms 3596 KiB
random_09.txt AC 1 ms 3544 KiB
random_10.txt AC 2 ms 3396 KiB
random_11.txt AC 3 ms 3532 KiB
random_12.txt AC 2 ms 3568 KiB
random_13.txt AC 3 ms 3592 KiB
random_14.txt AC 2 ms 3528 KiB
random_15.txt AC 2 ms 3600 KiB
random_16.txt AC 2 ms 3556 KiB
sample_01.txt AC 2 ms 3400 KiB
sample_02.txt AC 2 ms 3400 KiB
sample_03.txt AC 2 ms 3532 KiB