Beginner Free Contest 47 - FIVE
View as PDF
Submit solution
Points:
0.20 (partial)
Time limit:
1.0s
Memory limit:
512M
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
Comments
int a[6]; for(int i=1; i<=5; i++) cin >> a[i]; for(int i=5; i>=1; i--){ if(a[i]==1) { cout << i;
} }