Submission #19551692


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

int main(){
    int a, b, c, k, s, t;
    cin >> a >> b >> c >> k >> s >> t;
    
    cout << s * a + b * t - (s + t >= k ? (s + t) * c : 0) << endl;
    
    return 0;
}

Submission Info

Submission Time
Task A - 動物園
User SeaCrane
Language C++ (GCC 9.2.1)
Score 100
Code Size 229 Byte
Status AC
Exec Time 7 ms
Memory 3624 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 7 ms 3524 KB
sample_02.txt AC 2 ms 3444 KB
sample_03.txt AC 4 ms 3436 KB
subtask1_01.txt AC 2 ms 3588 KB
subtask1_02.txt AC 2 ms 3432 KB
subtask1_03.txt AC 2 ms 3568 KB
subtask1_04.txt AC 3 ms 3592 KB
subtask1_05.txt AC 2 ms 3584 KB
subtask1_06.txt AC 2 ms 3564 KB
subtask1_07.txt AC 3 ms 3432 KB
subtask1_08.txt AC 2 ms 3432 KB
subtask1_09.txt AC 2 ms 3440 KB
subtask1_10.txt AC 2 ms 3588 KB
subtask1_11.txt AC 2 ms 3552 KB
subtask1_12.txt AC 2 ms 3448 KB
subtask1_13.txt AC 2 ms 3436 KB
subtask1_14.txt AC 3 ms 3568 KB
subtask1_15.txt AC 2 ms 3552 KB
subtask1_16.txt AC 2 ms 3392 KB
subtask1_17.txt AC 2 ms 3584 KB
subtask1_18.txt AC 2 ms 3392 KB
subtask1_19.txt AC 2 ms 3620 KB
subtask1_20.txt AC 3 ms 3564 KB
subtask1_21.txt AC 3 ms 3524 KB
subtask1_22.txt AC 2 ms 3568 KB
subtask1_23.txt AC 2 ms 3432 KB
subtask1_24.txt AC 2 ms 3392 KB
subtask1_25.txt AC 2 ms 3452 KB
subtask1_26.txt AC 3 ms 3624 KB
subtask1_27.txt AC 2 ms 3580 KB
subtask1_28.txt AC 3 ms 3520 KB
subtask1_29.txt AC 2 ms 3520 KB