Submission #7524

# Submission time Handle Problem Language Result Execution time Memory
7524 2014-08-10T12:12:00 Z tncks0121 카드 (GA8_card) C++
25 / 100
1000 ms 1088 KB
#include <stdio.h>
 
int main() {
  int n, s = 0, m = -1;
  scanf("%d", &n);
  while(n == 1);
  while(n--) {
    int x; scanf("%d", &x);
    s += x;
    if(x > m) m = x;
  }
  printf("%d\n", s-m);
  return 0;
}
# Verdict Execution time Memory Grader output
1 Execution timed out 1000 ms 1084 KB Program timed out
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
4 Correct 0 ms 1088 KB Output is correct
5 Correct 0 ms 1088 KB Output is correct
6 Correct 0 ms 1088 KB Output is correct
7 Correct 0 ms 1088 KB Output is correct
8 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1000 ms 1084 KB Program timed out
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1000 ms 1084 KB Program timed out
2 Halted 0 ms 0 KB -