Submission #19547376


Source Code Expand

Copy
#include <iostream>
#include <algorithm>
#include <math.h>
#include <limits>
#include <iomanip>
#include <vector>
#include <string>
#include <queue>
#include <random>
#include <map>
#include <set>
using namespace std;
int main() {
	int A, B, C, K, S, T;
	cin >> A >> B >> C >> K >> S >> T;
	if (S + T >= K) {
		cout << A * S + B * T - (C * (S + T)) << endl;
		return 0;
	}
	else {
		cout << A * S + B * T << endl;
		return 0;
	}
}

Submission Info

Submission Time
Task A - 動物園
User YK0199
Language C++ (GCC 9.2.1)
Score 100
Code Size 455 Byte
Status AC
Exec Time 6 ms
Memory 3608 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 32
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.txt
Case Name Status Exec Time Memory
sample_01.txt AC 6 ms 3564 KB
sample_02.txt AC 2 ms 3568 KB
sample_03.txt AC 2 ms 3400 KB
subtask1_01.txt AC 3 ms 3424 KB
subtask1_02.txt AC 4 ms 3424 KB
subtask1_03.txt AC 6 ms 3536 KB
subtask1_04.txt AC 4 ms 3436 KB
subtask1_05.txt AC 2 ms 3424 KB
subtask1_06.txt AC 2 ms 3540 KB
subtask1_07.txt AC 3 ms 3544 KB
subtask1_08.txt AC 2 ms 3608 KB
subtask1_09.txt AC 5 ms 3544 KB
subtask1_10.txt AC 3 ms 3568 KB
subtask1_11.txt AC 2 ms 3576 KB
subtask1_12.txt AC 2 ms 3512 KB
subtask1_13.txt AC 3 ms 3396 KB
subtask1_14.txt AC 3 ms 3584 KB
subtask1_15.txt AC 4 ms 3544 KB
subtask1_16.txt AC 3 ms 3424 KB
subtask1_17.txt AC 2 ms 3540 KB
subtask1_18.txt AC 5 ms 3540 KB
subtask1_19.txt AC 3 ms 3608 KB
subtask1_20.txt AC 3 ms 3572 KB
subtask1_21.txt AC 2 ms 3576 KB
subtask1_22.txt AC 3 ms 3384 KB
subtask1_23.txt AC 2 ms 3568 KB
subtask1_24.txt AC 6 ms 3564 KB
subtask1_25.txt AC 3 ms 3400 KB
subtask1_26.txt AC 4 ms 3568 KB
subtask1_27.txt AC 3 ms 3560 KB
subtask1_28.txt AC 2 ms 3544 KB
subtask1_29.txt AC 2 ms 3396 KB