/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.

Code

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



int main()
{
    int t;
    cin >> t;
    while(t--){
        long long a,b,n,d,ans;
        cin >> n>>d>>a>>b;
        ans=d*a+(n-d)*b;
        cout << static_cast<long long>(ans)<< endl;
        
    }
}

Information

Submit By
Type
Submission
Problem
P1090 Summer trip
Language
C99 (GCC 13.2.0)
Submit At
2024-10-03 07:45:34
Judged At
2024-10-03 12:53:38
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes