Submission #115789

# Submission time Handle Problem Language Result Execution time Memory
115789 2019-06-09T06:27:51 Z imsifile Registration (FXCUP4_registration) Text
0 / 100
0 ms 0 KB
#include<stdio.h>

int n, ba[101010], chk[101010];
long long dap;

int main(){
	int i, j;
	scanf("%d", &n);
	for(i=0; i<n; i++)scanf("%d", &ba[i]);
	for(i=j=0; i<n; i++){
		for(; j<n; j++){
			if(chk[ba[j]])break;
			chk[ba[j]]++;
		}
		dap += j-i;
		chk[ba[i]]--;
	}
	printf("%lld", dap);
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 0 KB Token parameter [name=Username of main contest] equals to "#include<stdio.h>", doesn't correspond to pattern "[A-Za-z0-9_]{1,30}"