Submission #3662213
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define ll long long #define fw(p) for(int w=0;w<(p);w++) #define fx(p) for(int x=0;x<(p);x++) #define fy(p) for(int y=0;y<(p);y++) #define fz(p) for(int z=0;z<(p);z++) #define fyg(p,g) for(int y=(g);y<(p);y++) #define fzg(p,g) for(int z=(g);z<(p);z++) #define ce(d) cout<<d<<endl; #define vecp(p) int aa;cin>>aa;(p).push_back(aa); #define vecpl(p) long long aa;cin>>aa;(p).push_back(aa); #define vecps(p) string aa;cin>>aa;(p).push_back(aa); #define vecp2(p) int ab;cin>>ab;(p).push_back(ab); #define vecpl2(p) long long ab;cin>>ab;(p).push_back(ab); #define vecps2(p) string ab;cin>>ab;(p).push_back(ab); #define set0(k,n) for(int nn=0;nn<(n);nn++){ (k).push_back(0); } #define sorts(c) sort((c).begin(),(c).end()); #define reverses(c) reverse((c).begin(),(c).end()); #define vec(b) vector<int> (b); #define vecl(b) vector<long long> (b); #define vecs(b) vector<string> (b); #define vecsize(b,size) vector<int> (b)((size)); #define pb(b,a) (b).push_back((a)); #define doublece(a,b) cout<<(a)<<' '<<(b)<<endl; int main() { int T,A,B,C,D; cin>>T>>A>>B>>C>>D; ll ans=0; int time=0; if(time+C<=T) {ans+=D;} if(time+A<=T){ans+=B;} ce(ans) }
Submission Info
Submission Time | |
---|---|
Task | A - Two Problems |
User | monochro |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 1237 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt, s3.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt, s3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 1 ms | 256 KB |
02.txt | AC | 1 ms | 256 KB |
03.txt | AC | 1 ms | 256 KB |
04.txt | AC | 1 ms | 256 KB |
05.txt | WA | 1 ms | 256 KB |
06.txt | AC | 1 ms | 256 KB |
07.txt | AC | 1 ms | 256 KB |
08.txt | AC | 1 ms | 256 KB |
09.txt | WA | 1 ms | 256 KB |
10.txt | WA | 1 ms | 256 KB |
s1.txt | AC | 1 ms | 256 KB |
s2.txt | AC | 1 ms | 256 KB |
s3.txt | WA | 1 ms | 256 KB |