Submission #397489

#TimeUsernameProblemLanguageResultExecution timeMemory
397489IwanttobreakfreeTarifa (COCI16_tarifa)C++98
50 / 50
1 ms208 KiB
#include <iostream> using namespace std; int main(){ long long int tot=0,n,m,g; cin>>g; cin>>n; while(n--){ tot+=g; cin>>m; int dif=tot-m; tot=dif; //cout<<tot<<' '; } cout<<tot+g; }
#Verdict Execution timeMemoryGrader output
Fetching results...