Submission #7889

#TimeUsernameProblemLanguageResultExecution timeMemory
7889Qwaz카드 (GA8_card)C++14
100 / 100
0 ms1096 KiB
#include <cstdio> const int MAX = 2300; int n, data[MAX], sum, maxNum; void input(){ scanf("%d", &n); int i; for(i = 0; i<n; i++){ scanf("%d", &data[i]); if(maxNum < data[i]) maxNum = data[i]; sum += data[i]; } } int main(){ input(); printf("%d\n", sum-maxNum); return 0; }
#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...