/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 352.0 KiB
#2 Wrong Answer 2ms 328.0 KiB
#3 Wrong Answer 2ms 552.0 KiB

Code

#include<bits/stdc++.h>
using namespace std;
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define endl '\n'
#define ll long long int
int main()
{
    optimize();
    ll t;
    cin >> t;
    while(t--){
    ll a,b,c,d;
    cin >> a>>b>>c>>d;
   cout <<(b*c)+((a-b)*d)<< endl;
    }
 }

Information

Submit By
Type
Submission
Problem
P1090 Summer trip
Language
C++20 (G++ 13.2.0)
Submit At
2024-09-06 10:05:47
Judged At
2024-11-11 02:56:23
Judged By
Score
10
Total Time
2ms
Peak Memory
552.0 KiB