Submit solution
Points:
7 (partial)
Time limit:
1.0s
Memory limit:
64M
Problem type
Allowed languages
Brain****, C, C++, Pascal, Rust
Canadian Computing Competition: 1998 Stage 2, Day 1, Problem 1
The
Write a program that reads several 0
.
Sample Input
Copy
1
2
3
4
5
100
0
Sample Output
Copy
1
1
2
3
5
354224848179261915075
Comments