#CCBCHBAHAI0000098. Initializer có quá nhiều phần tử
Initializer có quá nhiều phần tử
Too Many Initializer Elements
Source: Phuoc Hung OJ
Version: Phuoc Hung OJ Extended
Problem
A conceptual fixed-capacity C declaration is
int a[N] = {v0, v1, ..., v(K-1)};
Here denotes a positive integer constant in the declaration and the initializer list contains exactly elements. The declaration is valid when ; when , the remaining elements are zero-initialized. If , there are excess initializers and the declaration is invalid.
Input
The first line contains . The second line contains exactly initializer values.
Output
Print VALID if ; otherwise print INVALID.
Subtask
Subtask 1 (20 points): .
Subtask 2 (30 points): .
Subtask 3 (50 points): .
Example
Input
3 4
1 2 3 4
Output
INVALID
Explanation
, so the initializer list is too long.