Created
August 15, 2018 08:22
-
-
Save ateruimashin/bcef00bdd06ede12bdb24373041d2eb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(int argc, char const *argv[]) { | |
int n; | |
cin>>n; | |
int sum=0; | |
for(int i=0;i<n;i++){ | |
int tmp; | |
cin>>tmp; | |
sum+=tmp-1; | |
} | |
cout<<sum<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment