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

In case the statement didn't load correctly, you can download the statement here: Statement

Lưu ý: các bạn không nhập, xuất dữ liệu bằng file kể cả khi đề bài có yêu cầu. Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.


Comments

Please read the guidelines before commenting.



  • 0
    lightloveyou2009  commented on Dec. 9, 2025, 6:15 a.m.

    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;
    } }


  • 2
    _no_love_no_gain_  commented on April 6, 2025, 9:42 a.m.
        int a[5];
        for(int i = 0; i < 5; ++i) cin >> a[i];
        for(int i = 4; i >= 0; --i){
            if(a[i] == 1) cout << i+1;
        }