C Language Level 1 December Simulation

C Language Level 1 December Simulation

A.Repeated Sequence Problem: There is a sequence arranged in the following order: 1,2,3,4,0, 1,2,3,4,0, 1,2,3,4,0, 1,2,3,4,0, ⋯ What is the n-th number in this sequence? Input Format:A single integer: n Output Format:A single integer: the value of the n-th number in the sequence SampleInput1:1 SampleOutput1:1 SampleInput2:10 SampleOutput2:0 Note (Data Range): 1≤n≤1000000 Time Limit: 1000ms Memory … Read more