A chia B

View as PDF

Submit solution

Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Problem type
Allowed languages
Python, Scratch

Viết chương trình nhập vào hai số ~A~ và ~B~ rồi kiểm tra xem ~A~ có chia hết cho ~B~ hay không?

Input Specification

  • Dòng 1 chứa số nguyên ~A~ (~1 \le~ ~A~ ~\le 10^9~)
  • Dòng 2 chứa số nguyên ~B~ (~1 \le~ ~B~ ~\le 10^9~)

Output Specification

Nếu ~A~ chia hết cho ~B~ thì in ra YES, ngược lại in ra NO

Sample Input

10
5

Sample Output

YES

Sample Input

8
3

Sample Output

NO

Comments

Please read the guidelines before commenting.



  • 0
    minhkhue  commented on May 10, 2025, 2:53 p.m.

    a=int(input)) b=int(input)) if(a%b==0): print("YES") else:print("NO")


  • 1
    nguyenkhang2008  commented on May 9, 2025, 3:39 p.m.

    dễ mà , vãi cả ko biết làm lun á


  • -1
    Le_Kiet15  commented on April 24, 2025, 1:48 p.m.

    Code PY3 nè:

    a=int(input())
    b=int(input())
    if a%b==0:
        print("YES")
    else:
        print("NO")
    

  • -7
    Minh2701  commented on April 22, 2025, 12:01 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -7
    Minh2701  commented on April 22, 2025, 11:40 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • 1
    ngominhnhat  commented on April 21, 2025, 10:48 a.m.

    a=int(input()) b=int(input()) if a%b==0: print("YES") else: print("NO")


  • -1
    nguyenkhang2008  commented on April 13, 2025, 9:57 a.m.

    a=int(input())
    b=int(input())
    if (a%b==0):
    print ("YES")
    else: print ("NO")


  • -2
    badat20092015  commented on March 29, 2025, 2:52 a.m.

    bài dễ đúng không me ní?


  • -9
    thuyltx  commented on March 26, 2025, 2:51 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


    • 0
      Bakhangvp2  commented on May 12, 2025, 10:39 a.m.

      scratch


  • -11
    Vinhphuc  commented on March 24, 2025, 1:39 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.