Submission #14065

#TimeUsernameProblemLanguageResultExecution timeMemory
14065sleep4725이상한 수열 (OJUZ10_bizarre)C++98
0 / 100
8 ms1280 KiB
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(void) { int a; scanf("%d", &a); int* arr = NULL; int m; int i; int sum = 0; arr = (int*)malloc(sizeof(int)* a); for (i = 0; i < a; i++) { scanf("%d", &arr[i]); } sum = arr[a - 1]; scanf("%d", &m); for (i = a-1; i < m-1; i++) { sum = sum+1; } printf("%d", sum); 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...