Beginner Free Contest 47 - SELFDIV

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
    _no_love_no_gain_  commented on April 18, 2025, 4:47 a.m.
    int is(int n){
        int t = n;
        while(n != 0){
            int m = n%10;
            if (m == 0 || t% m!= 0) return 0;
            n /=10;
        }
        return 1;
    }