Skip to content

Commit

Permalink
new questions added, readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bestmahdi2 committed Apr 10, 2021
1 parent 7ac854f commit 0ae3a36
Show file tree
Hide file tree
Showing 25 changed files with 219 additions and 45 deletions.
92 changes: 51 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,46 +53,57 @@
13 | 618 | [چاپ لوزی](https://b2n.ir/304206) | دانشگاهی | [Python](Solved/Chape%20Lozi) |
14 | 649 | [اول بینی](https://b2n.ir/f91551) | دانشگاهی | [Python](Solved/Aval%20Bini) |
15 | 655 | [فرزاد فیلم بین](https://b2n.ir/t13786) | دانشگاهی | [Python](Solved/Farzade%20Filmbin) |
16 | 2636 | [شطرنج حرفه‌ای](https://b2n.ir/571633) | مسابقه | [Python](Solved/Shatranje%20Herfei) |
17 | 2659 | [تست بینایی](https://b2n.ir/997305) | مسابقه | [Python](Solved/Teste%20Binaei) |
18 | 2885 | [سوال زرد](https://b2n.ir/222646) | مسابقه | [Python](Solved/Soale%20Zard) |
19 | 2885 | [یک سوال ساده](https://b2n.ir/473372) | مسابقه | [Python](Solved/Yek%20Soale%20Sade) |
20 | 3403 | [ساده تر](https://b2n.ir/r02497) | مسابقه | [Python](Solved/Sade%20Tar) |
21 | 3404 | [تو چقدر اضافه وزن داری؟](https://b2n.ir/785885) | مسابقه | [Python](Solved/To%20Cheghadr%20Ezafe%20Vazn%20Dari) |
22 | 3405 | [چاپ برعکس](https://b2n.ir/637768) | مسابقه | [Python](Solved/Chape%20Baraks) |
23 | 3406 | [صدگان خسته](https://b2n.ir/957810) | مسابقه | [Python](Solved/Sadegane%20Khaste) |
24 | 3408 | [سوال برنامه نویسی برنامه نویسی سوال](https://b2n.ir/w27089) | مسابقه | [Python](Solved/Soale%20Barname%20Nevisi%20Barname%20Nevisi%20Soal) |
25 | 3409 | [جدول ضرب گنده](https://b2n.ir/608271) | مسابقه | [Python](Solved/Jadval%20Zarbe%20Gonde) |
26 | 3414 | [دو نقطه خط](https://b2n.ir/n47769) | مسابقه | [Python](Solved/Do%20Noghte%20Khat) |
27 | 3429 | [یخدارچی](https://b2n.ir/773396) | مسابقه | [Python](Solved/Yakhdarchi) |
28 | 3430 | [بلندگو](https://b2n.ir/651861) | مسابقه | [Python](Solved/Bolandgoo) |
29 | 3538 | [آخ جون طرف نیست!](https://b2n.ir/s82371) | مسابقه | [Python](Solved/Akh%20joon%20Taraf%20Nist) |
30 | 3539 | [تک رقمی](https://b2n.ir/066773) | مسابقه | [Python](Solved/Tak%20Raghami) |
31 | 4065 | [خر در چمن فراوونه](https://b2n.ir/627599) | مسابقه | [C++, Python](Solved/Khar%20dar%20chaman%20faravoone) |
32 | 6082 | [آسمان شکر آباد](https://b2n.ir/k26599) | مسابقه | [Python](Solved/Asemane%20Shekar%20Abad) |
33 | 8838 | [کمک به کاپی](https://b2n.ir/718957) | مسابقه | [Python](Solved/Komak%20Be%20Copy) |
34 | 9773 | [لوزی های ستاره ای](https://b2n.ir/y21327) | دانشگاهی | [Python](Solved/Lozi%20Haye%20Setareee) |
35 | 9774 | [عدد خوب](https://b2n.ir/p78407) | دانشگاهی | [Python](Solved/Adade%20Khoob) |
36 | 9774 | [عدد چاپ کن](https://b2n.ir/593554) | دانشگاهی | [Python](Solved/Adad%20Chap%20Kon) |
37 | 10162 | [روز آزادی بیان در برره](https://b2n.ir/063396) | مسابقه | [Python](Solved/Rooze%20Azadi%20Bayan%20Da%20Barare) |
38 | 10230 | [مشق امشب باقر](https://b2n.ir/y28651) | مسابقه | [Python](Solved/Mashghe%20Emshabe%20Bagher) |
39 | 10231 | [خُب باقر سرما خورده](https://b2n.ir/e33907) | مسابقه | [Python](Solved/Khob%20Bagher%20Sarma%20Khorde) |
40 | 10325 | [همایش زندگی بهتر](https://b2n.ir/832593) | مسابقه | [Python](Solved/Hamayeshe%20Zandegi%20Behtar) |
41 | 10326 | [استارت-آپ باکلاس](https://b2n.ir/m53560) | مسابقه | [Python](Solved/Start-Up%20Bakelas) |
42 | 17244 | [شارژ موبایل](https://b2n.ir/040446) | مسابقه | [Python](Solved/Sharzhe%20Mobile) |
43 | 17675 | [رشته فیبوناچی](https://b2n.ir/055190) | مسابقه | [Python](Solved/Reshte%20Fibonacci) |
44 | 20256 | [رژیم سخت](https://b2n.ir/t20497) | مسابقه | [Python](Solved/Rezhime%20Sakht) |
45 | 28947 | [ام‌سین](https://b2n.ir/t37594) | مسابقه | [Python](Solved/EmSin) |
46 | 31025 | [صبا و سوال ساده](https://b2n.ir/585297) | مسابقه | [Python](Solved/Saba%20va%20Soale%20Sade) |
47 | 51865 | [بهداشت و سلامت](https://b2n.ir/064854) | مسابقه | [Python](Solved/Behdasht%20va%20Salamat) |
48 | --- | [تکرار حرف در رشته](Solved/Tekrare%20Harf%20Dar%20Reshte/غیره_تکرار%20حرف%20در%20رشته.pdf) | غیره | [Python](Solved/Tekrare%20Harf%20Dar%20Reshte) |
49 | --- | [جدول ضرب](Solved/Jadval%20Zarb/غیره_جدول%20ضرب.pdf) | غیره | [Python](Solved/Jadval%20Zarb) |
50 | --- | [سری فیبوناتچی](Solved/Seri%20Fibonacci/غیره_سری%20فیبوناتچی.pdf) | غیره | [Python](Solved/Seri%20Fibonacci) |
51 | --- | [عدد آرمسترانگ](Solved/Adade%20Armstrang/غیره_عدد%20آرمسترانگ.pdf) | غیره | [Python](Solved/Adade%20Armstrang) |
52 | --- | [عدد کامل](Solved/Adade%20Kamel/غیره_عدد%20کامل.pdf) | غیره | [Python](Solved/Adade%20Kamel) |
53 | --- | [مجموع ارقام](Solved/Majmo'e%20Arghaam/غیره_مجموع%20ارقام.pdf) | غیره | [Python](Solved/Majmo'e%20Arghaam) |
54 | --- | [مجموع اعداد](Solved/Majmo'e%20Adaad/غیره_مجموع%20اعداد.pdf) | غیره | [Python](Solved/Majmo'e%20Adaad) |
55 | --- | [میانگین اعداد](Solved/Miangine%20Adaad/غیره_میانگین%20اعداد.pdf) | غیره | [Python](Solved/Miangine%20Adaad) |
16 | 2529 | [اسم‌ها](https://b2n.ir/q28319) | مسابقه | [Python](Solved/Esmha) |
17 | 2636 | [شطرنج حرفه‌ای](https://b2n.ir/571633) | مسابقه | [Python](Solved/Shatranje%20Herfei) |
18 | 2659 | [تست بینایی](https://b2n.ir/997305) | مسابقه | [Python](Solved/Teste%20Binaei) |
19 | 2705 | [بدخواه پویان](https://b2n.ir/q46709) | مسابقه | [Python](Solved/Badkhahe%20Pouyan) |
20 | 2755 | [خریدار ناشی](https://b2n.ir/y03346) | مسابقه | [Python](Solved/Kharidare%20Nashi) |
21 | 2794 | [دوربین مداربسته](https://b2n.ir/771462) | مسابقه | [Python](Solved/Doorbin%20MadarBaste) |
22 | 2885 | [سوال زرد](https://b2n.ir/222646) | مسابقه | [Python](Solved/Soale%20Zard) |
23 | 2885 | [یک سوال ساده](https://b2n.ir/473372) | مسابقه | [Python](Solved/Yek%20Soale%20Sade) |
24 | 2886 | [یک ساعت](https://b2n.ir/y36493) | مسابقه | [Python](Solved/Yek%20Sa'at) |
25 | 3029 | [بازگشت از بوستان](https://b2n.ir/p21874) | مسابقه | [Python](Solved/Bazgasht%20Az%20Boostan) |
26 | 3403 | [ساده تر](https://b2n.ir/r02497) | مسابقه | [Python](Solved/Sade%20Tar) |
27 | 3404 | [تو چقدر اضافه وزن داری؟](https://b2n.ir/785885) | مسابقه | [Python](Solved/To%20Cheghadr%20Ezafe%20Vazn%20Dari) |
28 | 3405 | [چاپ برعکس](https://b2n.ir/637768) | مسابقه | [Python](Solved/Chape%20Baraks) |
29 | 3406 | [صدگان خسته](https://b2n.ir/957810) | مسابقه | [Python](Solved/Sadegane%20Khaste) |
30 | 3408 | [سوال برنامه نویسی برنامه نویسی سوال](https://b2n.ir/w27089) | مسابقه | [Python](Solved/Soale%20Barname%20Nevisi%20Barname%20Nevisi%20Soal) |
31 | 3409 | [جدول ضرب گنده](https://b2n.ir/608271) | مسابقه | [Python](Solved/Jadval%20Zarbe%20Gonde) |
32 | 3414 | [دو نقطه خط](https://b2n.ir/n47769) | مسابقه | [Python](Solved/Do%20Noghte%20Khat) |
33 | 3429 | [یخدارچی](https://b2n.ir/773396) | مسابقه | [Python](Solved/Yakhdarchi) |
34 | 3430 | [بلندگو](https://b2n.ir/651861) | مسابقه | [Python](Solved/Bolandgoo) |
35 | 3538 | [آخ جون طرف نیست!](https://b2n.ir/s82371) | مسابقه | [Python](Solved/Akh%20joon%20Taraf%20Nist) |
36 | 3539 | [تک رقمی](https://b2n.ir/066773) | مسابقه | [Python](Solved/Tak%20Raghami) |
37 | 4065 | [خر در چمن فراوونه](https://b2n.ir/627599) | مسابقه | [C++, Python](Solved/Khar%20dar%20chaman%20faravoone) |
38 | 4067 | [سراب](https://b2n.ir/a44383) | مسابقه | [Python](Solved/Sarab) |
39 | 6082 | [آسمان شکر آباد](https://b2n.ir/k26599) | مسابقه | [Python](Solved/Asemane%20Shekar%20Abad) |
40 | 8838 | [کمک به کاپی](https://b2n.ir/718957) | مسابقه | [Python](Solved/Komak%20Be%20Copy) |
41 | 9773 | [لوزی های ستاره ای](https://b2n.ir/y21327) | دانشگاهی | [Python](Solved/Lozi%20Haye%20Setareee) |
42 | 9774 | [عدد خوب](https://b2n.ir/p78407) | دانشگاهی | [Python](Solved/Adade%20Khoob) |
43 | 9774 | [عدد چاپ کن](https://b2n.ir/593554) | دانشگاهی | [Python](Solved/Adad%20Chap%20Kon) |
44 | 10162 | [روز آزادی بیان در برره](https://b2n.ir/063396) | مسابقه | [Python](Solved/Rooze%20Azadi%20Bayan%20Da%20Barare) |
45 | 10230 | [مشق امشب باقر](https://b2n.ir/y28651) | مسابقه | [Python](Solved/Mashghe%20Emshabe%20Bagher) |
46 | 10231 | [خُب باقر سرما خورده](https://b2n.ir/e33907) | مسابقه | [Python](Solved/Khob%20Bagher%20Sarma%20Khorde) |
47 | 10325 | [همایش زندگی بهتر](https://b2n.ir/832593) | مسابقه | [Python](Solved/Hamayeshe%20Zandegi%20Behtar) |
48 | 10326 | [استارت-آپ باکلاس](https://b2n.ir/m53560) | مسابقه | [Python](Solved/Start-Up%20Bakelas) |
49 | 17244 | [شارژ موبایل](https://b2n.ir/040446) | مسابقه | [Python](Solved/Sharzhe%20Mobile) |
50 | 17675 | [رشته فیبوناچی](https://b2n.ir/055190) | مسابقه | [Python](Solved/Reshte%20Fibonacci) |
51 | 20249 | [مربّاها و مشکلات اقتصادی](https://b2n.ir/u30756) | مسابقه | [Python](Solved/Morabaha%20Va%20Moshkelate%20Eghtesadi) |
52 | 20256 | [رژیم سخت](https://b2n.ir/t20497) | مسابقه | [Python](Solved/Rezhime%20Sakht) |
53 | 28947 | [ام‌سین](https://b2n.ir/t37594) | مسابقه | [Python](Solved/EmSin) |
54 | 31025 | [صبا و سوال ساده](https://b2n.ir/585297) | مسابقه | [Python](Solved/Saba%20va%20Soale%20Sade) |
55 | 34081 | [دایره عجیب](https://b2n.ir/s60073) | مسابقه | [Python](Solved/Dayere%20Ajib) |
56 | 35253 | [هندونه‌خوری](https://b2n.ir/f48514) | مسابقه | [Python](Solved/Hendoone%20Khori) |
57 | 49535 | [گزارش کار](https://b2n.ir/j07770) | مسابقه | [Python](Solved/Gozaresh%20Kaar) |
58 | 51865 | [بهداشت و سلامت](https://b2n.ir/064854) | مسابقه | [Python](Solved/Behdasht%20va%20Salamat) |
59 | --- | [تکرار حرف در رشته](Solved/Tekrare%20Harf%20Dar%20Reshte/غیره_تکرار%20حرف%20در%20رشته.pdf) | غیره | [Python](Solved/Tekrare%20Harf%20Dar%20Reshte) |
60 | --- | [جدول ضرب](Solved/Jadval%20Zarb/غیره_جدول%20ضرب.pdf) | غیره | [Python](Solved/Jadval%20Zarb) |
61 | --- | [سری فیبوناتچی](Solved/Seri%20Fibonacci/غیره_سری%20فیبوناتچی.pdf) | غیره | [Python](Solved/Seri%20Fibonacci) |
62 | --- | [عدد آرمسترانگ](Solved/Adade%20Armstrang/غیره_عدد%20آرمسترانگ.pdf) | غیره | [Python](Solved/Adade%20Armstrang) |
63 | --- | [عدد کامل](Solved/Adade%20Kamel/غیره_عدد%20کامل.pdf) | غیره | [Python](Solved/Adade%20Kamel) |
64 | --- | [مجموع ارقام](Solved/Majmo'e%20Arghaam/غیره_مجموع%20ارقام.pdf) | غیره | [Python](Solved/Majmo'e%20Arghaam) |
65 | --- | [مجموع اعداد](Solved/Majmo'e%20Adaad/غیره_مجموع%20اعداد.pdf) | غیره | [Python](Solved/Majmo'e%20Adaad) |
66 | --- | [میانگین اعداد](Solved/Miangine%20Adaad/غیره_میانگین%20اعداد.pdf) | غیره | [Python](Solved/Miangine%20Adaad) |

[:back: بازگشت به فهرست](#mag_right-فهرست-جداول)

Expand All @@ -115,7 +126,6 @@
11 | 33045 | [مقسوم‌علیه‌های دردسرساز](https://b2n.ir/g99973) | مسابقه | [Python](UnSolved/Maghsoom%20Elayhaye%20Darde%20Sar%20Saz) |
12 | 35253 | [هندونه‌خوری](https://b2n.ir/f48514) | مسابقه | [Python](UnSolved/Hendoone%20Khori) |


[:back: بازگشت به فهرست](#mag_right-فهرست-جداول)


Expand Down
4 changes: 3 additions & 1 deletion Solved/Adaade Aval/Adaade Aval.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
adad_aval = False
break
if adad_aval:
print(i)
if i != 1:
print(i)


###########################################################

Expand Down
6 changes: 3 additions & 3 deletions Solved/Adade Kamel/Adade Kamel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
for x in range(1, N//2 + 1):
if N % x == 0:
jam += x
if jam == N:
print("YES")
else:
if jam != N:
print("NO")
else:
print("YES")
13 changes: 13 additions & 0 deletions Solved/Badkhahe Pouyan/Badkhahe Pouyan.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# بدخواه پویان
# ID : 2705
# https://quera.ir/problemset/contest/2705/%D8%A8%D8%AF%D8%AE%D9%88%D8%A7%D9%87%20%D9%BE%D9%88%DB%8C%D8%A7%D9%86
# https://b2n.ir/q46709

p, d = [int(i) for i in input().split()]

x = 1
while True:
if 0 <= (x * d) % p <= p/2:
print(x * d)
break
x += 1
Binary file not shown.
10 changes: 10 additions & 0 deletions Solved/Bazgasht Az Boostan/Bazgasht Az Boostan.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# بازگشت از بوستان
# ID : 3029
# https://quera.ir/problemset/contest/3029/%D8%A8%D8%A7%D8%B2%DA%AF%D8%B4%D8%AA%20%D8%A7%D8%B2%20%D8%A8%D9%88%D8%B3%D8%AA%D8%A7%D9%86
# https://b2n.ir/p21874

x, y = [int(i) for i in input().split()]
x1, y1 = [int(i) for i in input().split()]

print("Right" if x1 > x else "Left")

Binary file not shown.
18 changes: 18 additions & 0 deletions Solved/Dayere Ajib/Dayere Ajib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# دایره عجیب
# ID : 34081
# https://quera.ir/problemset/contest/34081/%D8%B3%D8%A4%D8%A7%D9%84-%D8%B1%DB%8C%D8%A7%D8%B6%DB%8C%D8%A7%D8%AA-%D8%AF%D8%A7%DB%8C%D8%B1%D9%87-%D8%B9%D8%AC%DB%8C%D8%A8
# https://b2n.ir/s60073

n, k = [int(i) for i in input().split()]

turn = 1
count = 1
while True:
turn += k
turn = (turn - n) if turn > n else turn

if turn == 1:
break
count += 1

print(count)
Binary file not shown.
14 changes: 14 additions & 0 deletions Solved/Doorbin MadarBaste/Doorbin MadarBaste.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# دوربین مداربسته
# ID : 2794
# https://quera.ir/problemset/contest/2794/%D8%B3%D8%A4%D8%A7%D9%84-%D8%AF%D9%88%D8%B1%D8%A8%DB%8C%D9%86-%D9%85%D8%AF%D8%A7%D8%B1%D8%A8%D8%B3%D8%AA%D9%87
# https://b2n.ir/771462

a = input().split()
b = input().split()
c = input().split()

d1 = [a[0], b[0], c[0]]
d1 = [i for i in set(d1) if d1.count(i) == 1]
d2 = [a[1], b[1], c[1]]
d2 = [i for i in set(d2) if d2.count(i) == 1]
print(d1[0], d2[0])
Binary file not shown.
12 changes: 12 additions & 0 deletions Solved/Esmha/Esmha.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# اسم‌ها
# ID : 2529
# https://quera.ir/problemset/contest/2529/%D8%B3%D8%A4%D8%A7%D9%84-%D8%A7%D8%B3%D9%85%D9%87%D8%A7
# https://b2n.ir/q28319

n = int(input())

lister = []
for i in range(n):
lister.append(input())

print(max([len(set(i)) for i in lister]))
Binary file added Solved/Esmha/مسابقه _ اسمها.pdf
Binary file not shown.
11 changes: 11 additions & 0 deletions Solved/Gozaresh Kaar/Gozaresh Kaar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# گزارش کار
# ID : 49535
# https://quera.ir/problemset/contest/49535/%D8%B3%D8%A4%D8%A7%D9%84-%D9%BE%DB%8C%D8%A7%D8%AF%D9%87-%D8%B3%D8%A7%D8%B2%DB%8C-%DA%AF%D8%B2%D8%A7%D8%B1%D8%B4-%DA%A9%D8%A7%D8%B1
# https://b2n.ir/j07770

n, k = [int(i) for i in input().split()]

sum = 0
for i in range(n):
sum += int(input())
print("YES" if sum >= k else "NO")
Binary file not shown.
8 changes: 8 additions & 0 deletions Solved/Hendoone Khori/Hendoone Khori.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# هندونه‌خوری
# ID : 35253
# https://quera.ir/problemset/contest/35253/%D8%B3%D8%A4%D8%A7%D9%84-%D9%BE%DB%8C%D8%A7%D8%AF%D9%87-%D8%B3%D8%A7%D8%B2%DB%8C-%D9%87%D9%86%D8%AF%D9%88%D9%86%D9%87%D8%AE%D9%88%D8%B1%DB%8C
# https://b2n.ir/f48514

n = int(input())
string = [int(i) for i in input().split()]
print(string.index(max(string)) + 1)
Binary file not shown.
24 changes: 24 additions & 0 deletions Solved/Kharidare Nashi/Kharidare Nashi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# خریدار ناشی
# ID : 2755
# https://quera.ir/problemset/contest/2755/%D8%AE%D8%B1%DB%8C%D8%AF%D8%A7%D8%B1%20%D9%86%D8%A7%D8%B4%DB%8C
# https://b2n.ir/y03346

n, m, k = [int(i) for i in input().split()]

lister = []
for i in range(k):
lister.append([int(i) for i in input().split()])

if k % 2 != 0:
print(0)
elif k == m * n:
print(-1)
else:
for i in range(1, n+1):
for j in range(1, m+1):
if [i, j] not in lister:
print(1, " ".join([str(i), str(j)]), sep="\n")
break
else:
continue
break
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# مربّاها و مشکلات اقتصادی
# ID : 20249
# https://quera.ir/problemset/contest/20249/%D8%B3%D8%A4%D8%A7%D9%84-%D9%85%D8%B1%D8%A8%D8%A7%D9%87%D8%A7-%D9%88-%D9%85%D8%B4%DA%A9%D9%84%D8%A7%D8%AA-%D8%A7%D9%82%D8%AA%D8%B5%D8%A7%D8%AF%DB%8C
# https://b2n.ir/u30756

n, k = [int(i) for i in input().split()]
string = [int(i) for i in input().split()]
sums = sum(string)

print(n - (- (-sums // k)))
Binary file not shown.
27 changes: 27 additions & 0 deletions Solved/Sarab/Sarab.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# سراب
# ID : 4067
# https://quera.ir/problemset/contest/4067/%D8%B3%D8%A4%D8%A7%D9%84-%D8%B3%D8%B1%D8%A7%D8%A8
# https://b2n.ir/a44383

t = int(input())
keeper = []
for i in range(t):
keeper.append([int(i) for i in input().split()])

locs = [(0, 0)]
k = 1
for i in range(1, 15000):
if i % 2 != 0:
locs.append((locs[i-1][0] + 1, locs[i-1][1] + 1))
else:
if k % 2 != 0:
locs.append((locs[i-1][0] + 1, locs[i-1][1] - 1))
else:
locs.append((locs[i-1][0] - 1, locs[i-1][1] + 1))
k += 1

for i in keeper:
if (i[0], i[1]) in locs:
print(locs.index(((i[0], i[1]))))
else:
print(-1)
Binary file added Solved/Sarab/مسابقه _ سراب.pdf
Binary file not shown.
15 changes: 15 additions & 0 deletions Solved/Yek Sa'at/Yek Sa'at.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# یک ساعت
# ID : 2886
# https://quera.ir/problemset/contest/2886/%D8%B3%D8%A4%D8%A7%D9%84-%DB%8C%DA%A9-%D8%B3%D8%A7%D8%B9%D8%AA
# https://b2n.ir/y36493

hour, min = [int(i) for i in input().split()]
min = "00" if min == 0 else str(60 - min)
hour = "00" if hour == 0 else str(12 - hour)

if len(min) < 2:
min = "0" + min
if len(hour) < 2:
hour = "0" + hour

print(f'{hour}:{min}')
Binary file not shown.

0 comments on commit 0ae3a36

Please sign in to comment.