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
a=int(input)) b=int(input)) if(a%b==0): print("YES") else:print("NO")
dễ mà , vãi cả ko biết làm lun á
Code PY3 nè:
This comment is hidden due to too much negative feedback. Show it anyway.
This comment is hidden due to too much negative feedback. Show it anyway.
a=int(input()) b=int(input()) if a%b==0: print("YES") else: print("NO")
a=int(input())
b=int(input())
if (a%b==0):
print ("YES")
else: print ("NO")
bài dễ đúng không me ní?
This comment is hidden due to too much negative feedback. Show it anyway.
scratch
This comment is hidden due to too much negative feedback. Show it anyway.