Submission #19549841


Source Code Expand

Copy
#include<bits/stdc++.h>
#define ll long long
#define ld long double
#define F first
#define S second
#define MAXN   1000005
#define Tsetso ios_base::sync_with_stdio(0) ; cin.tie(0) ;
using namespace std;
#define rep(i,n)  for(int i=0;i<n;++i)



int main() {
  
 int a,b,c,k,s,t;
 cin>>a>>b>>c>>k;
 cin>>s>>t;
 int sum=0;
 if(s+t>=k){
sum=(a-c)*s+(b-c)*t;

 }else{
     sum=a*s+b*t;
 }
 cout<<sum<<endl;

 }

Submission Info

Submission Time
Task A - 動物園
User Lucas39275
Language C++ (GCC 9.2.1)
Score 100
Code Size 433 Byte
Status AC
Exec Time 7 ms
Memory 3528 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 3520 KB
sample_02.txt AC 3 ms 3292 KB
sample_03.txt AC 2 ms 3452 KB
subtask1_01.txt AC 2 ms 3516 KB
subtask1_02.txt AC 2 ms 3512 KB
subtask1_03.txt AC 2 ms 3492 KB
subtask1_04.txt AC 2 ms 3400 KB
subtask1_05.txt AC 2 ms 3528 KB
subtask1_06.txt AC 2 ms 3456 KB
subtask1_07.txt AC 7 ms 3376 KB
subtask1_08.txt AC 3 ms 3352 KB
subtask1_09.txt AC 2 ms 3376 KB
subtask1_10.txt AC 2 ms 3356 KB
subtask1_11.txt AC 2 ms 3352 KB
subtask1_12.txt AC 2 ms 3452 KB
subtask1_13.txt AC 2 ms 3516 KB
subtask1_14.txt AC 3 ms 3460 KB
subtask1_15.txt AC 2 ms 3528 KB
subtask1_16.txt AC 2 ms 3516 KB
subtask1_17.txt AC 3 ms 3332 KB
subtask1_18.txt AC 2 ms 3460 KB
subtask1_19.txt AC 2 ms 3404 KB
subtask1_20.txt AC 2 ms 3352 KB
subtask1_21.txt AC 2 ms 3352 KB
subtask1_22.txt AC 2 ms 3464 KB
subtask1_23.txt AC 2 ms 3356 KB
subtask1_24.txt AC 2 ms 3288 KB
subtask1_25.txt AC 2 ms 3492 KB
subtask1_26.txt AC 2 ms 3456 KB
subtask1_27.txt AC 2 ms 3528 KB
subtask1_28.txt AC 3 ms 3292 KB
subtask1_29.txt AC 2 ms 3424 KB