Time Lapse :NONE 8338.c1234567891011121314151617181920212223242526#include <stdio.h>char c;int answer;int main(int argc, char** argv){ int test_case; int T, r, k; scanf("%d",&T); getchar(); for(test_case = 1; test_case <= T; ++test_case){ //c = getchar(); //getchar(); answer = 0; //r = c-48; scanf("%d",&r); for(int i=0;i<r;i++){ //c = getchar(); //getchar(); //k = c-48; scanf("%d",&k); answer = answer *k > answer + k ? answer * k : answer + k; } printf("#%d %d\n",test_case,answer); } return 0;}