Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Nobita's candies problem

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 1.54 sec, absolute running time: 0.16 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 1,87 sec 
edit mode |  history  | discussion
Enter candies and friend in sequence as qus(x,n):
Nobita can return or ask to Mom for minimum candied are:
0
5
1
3
0
0
2
0
6
0

    
                
λ
.NET NoSQL database for rapid development