• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# nameerr

Deagan Apr 6th, 2020 201 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
322.18 KB
1. X = int(input("Введите первую координату? "))
2. Y = int(input("Введите вторую координату? "))
3. if X % 1 == 0 and Y % 1 == 0:
4.     print("Поле чёрное")
5. if X % 1 == 0 and Y % 1 != 0:
6.     print("Поле белое")
7. if X % 1 != 0 and Y % 1 == 0:
8.     print("Поле белое")
9. if X % 2 == 0 and Y % 2 == 0:
10.     print("Поле чёрное")
11. if X % 2 == 0 and Y % 2 != 0:
12.     print("Поле белое")
13. if X % 2 != 0 and Y % 2 == 0:
14.     print("Поле белое")
15. if X % 3 == 0 and Y % 3 == 0:
16.     print("Поле чёрное")
17. if X % 3 == 0 and Y % 3 != 0:
18.     print("Поле белое")
19. if X % 3 != 0 and Y % 3 == 0:
20.     print("Поле белое")
21. if X % 4 == 0 and Y % 4 == 0:
22.     print("Поле чёрное")
23. if X % 4 == 0 and Y % 4 != 0:
24.     print("Поле белое")
25. if X % 4 != 0 and Y % 4 == 0:
26.     print("Поле белое")
27. if X % 5 == 0 and Y % 5 == 0:
28.     print("Поле чёрное")
29. if X % 5 == 0 and Y % 5 != 0:
30.     print("Поле белое")
31. if X % 5 != 0 and Y % 5 == 0:
32.     print("Поле белое")
33. if X % 6 == 0 and Y % 6 == 0:
34.     print("Поле чёрное")
35. if X % 6 == 0 and Y % 6 != 0:
36.     print("Поле белое")
37. if X % 6 != 0 and Y % 6 == 0:
38.     print("Поле белое")
39. if X % 7 == 0 and Y % 7 == 0:
40.     print("Поле чёрное")
41. if X % 7 == 0 and Y % 7 != 0:
42.     print("Поле белое")
43. if X % 7 != 0 and Y % 7 == 0:
44.     print("Поле белое")
45. if X % 8 == 0 and Y % 8 == 0:
46.     print("Поле чёрное")
47. if X % 8 == 0 and Y % 8 != 0:
48.     print("Поле белое")
49. if X % 8 != 0 and Y % 8 == 0:
50.     print("Поле белое")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Top