Submission #472240

#TimeUsernameProblemLanguageResultExecution timeMemory
472240BidoTeimaCipele (COCI18_cipele)C++17
0 / 90
26 ms1868 KiB
/// isA AC #include <bits/stdc++.h> using namespace std; using ll = long long; void ACPLS(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); } #define tc int tttttt;cin>>tttttt;while(tttttt--) #define sumrange(l,r,arr) (l==0?arr[r]:arr[r]-arr[l-1]) bool isint(const string& s){ bool ok=1; for(char i:s) ok&=isdigit(i); return ok; } bool isseq(const string& s){ return !isint(s); } int main(){ ACPLS(); int n,m; cin>>n>>m; ll a[n],b[m]; for(auto&i:a)cin>>i; for(auto&i:b)cin>>i; ll ans=0; for(int i = 0; i < n; i++){ ans+=abs(a[i]-b[i]); } cout<<ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...