Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 14
#include <iostream> using namespace std; int main(){ int n; cin >> n; long long ans=0; long long x; for (int i = 0; i < n; i++) { cin >> x; ans+=x-1; } cout<<ans; }