-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new questions added to solved and unsolved, readme updated
- Loading branch information
1 parent
4e22757
commit 79dabe0
Showing
31 changed files
with
246 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# آسمان شکر آباد | ||
# ID : 6082 | ||
# https://quera.ir/problemset/contest/6082/%D8%B3%D8%A4%D8%A7%D9%84-%D8%A2%D8%B3%D9%85%D8%A7%D9%86-%D8%B4%DA%A9%D8%B1-%D8%A2%D8%A8%D8%A7%D8%AF | ||
# https://b2n.ir/k26599 | ||
|
||
starts = 0 | ||
for i in range(int(input().split()[0])): | ||
starts += (input()).count("*") | ||
print(starts) | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# بلندگو | ||
# ID : 3430 | ||
# https://quera.ir/problemset/contest/3430/%D8%B3%D8%A4%D8%A7%D9%84-%D8%A8%D9%84%D9%86%D8%AF%DA%AF%D9%88 | ||
# https://b2n.ir/651861 | ||
|
||
string = input() | ||
print(string) | ||
|
||
for i in range(1, len(string)): | ||
print(string[i] * i + string[i:]) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# امسین | ||
# ID : 28947 | ||
# https://quera.ir/problemset/contest/28947/%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-%D8%A7%D9%85%D8%B3%DB%8C%D9%86 | ||
# https://b2n.ir/t37594 | ||
|
||
number = int(input()) | ||
lister = ["sib", "samanoo", "senjed", "sabze", "somagh", "sir", "serke"] | ||
|
||
for i in range(number): | ||
print(lister[i]) |
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
Solved/Khob Bagher Sarma Khorde/Khob Bagher Sarma Khorde.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# خُب باقر سرما خورده | ||
# ID : 10231 | ||
# https://quera.ir/problemset/contest/10231/%D8%B3%D8%A4%D8%A7%D9%84-%D8%AE%D8%A8-%D8%A8%D8%A7%D9%82%D8%B1-%D8%B3%D8%B1%D9%85%D8%A7-%D8%AE%D9%88%D8%B1%D8%AF%D9%87 | ||
# https://b2n.ir/e33907 | ||
|
||
numbers = [] | ||
for i in range(5): | ||
string = input() | ||
if "MOLANA" in string or "HAFEZ" in string: | ||
numbers.append(str(i + 1)) | ||
print(" ".join(numbers) if len(numbers) else "NOT FOUND!") | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# رشته فیبوناچی | ||
# ID : 17675 | ||
# https://quera.ir/problemset/contest/17675/%D8%B3%D8%A4%D8%A7%D9%84-%D8%B1%D8%B4%D8%AA%D9%87-%D9%81%DB%8C%D8%A8%D9%88%D9%86%D8%A7%DA%86%DB%8C | ||
# https://b2n.ir/055190 | ||
|
||
n = int(input()) | ||
|
||
fibo = [1, 1] | ||
for i in range(2, 11): | ||
fibo.append(fibo[i-2] + fibo[i-1]) | ||
|
||
keeper = [] | ||
for i in range(1, n + 1): | ||
if i in fibo: | ||
keeper.append("+") | ||
else: | ||
keeper.append("-") | ||
|
||
print("".join(keeper)) | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# صبا و سوال ساده | ||
# ID : 31025 | ||
# https://quera.ir/problemset/contest/31025/%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-%D8%B5%D8%A8%D8%A7-%D9%88-%D8%B3%D9%88%D8%A7%D9%84-%D8%B3%D8%A7%D8%AF%D9%87 | ||
# https://b2n.ir/585297 | ||
|
||
string = input().split() | ||
print(int(string[0])//2 ** int(string[1])) | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ساده تر | ||
# ID : 3403 | ||
# https://quera.ir/problemset/contest/3403/%D8%B3%D8%A4%D8%A7%D9%84-%D8%B3%D8%A7%D8%AF%D9%87-%D8%AA%D8%B1 | ||
# https://b2n.ir/r02497 | ||
|
||
numbers = [] | ||
product = 1 | ||
for i in range(4): | ||
n = int(input()) | ||
product *= n | ||
numbers.append(n) | ||
|
||
print(f'Sum : {"%.6f" % sum(numbers)}') | ||
print(f'Average : {"%.6f" % (sum(numbers)/4)}') | ||
print(f'Product : {"%.6f" % product}') | ||
print(f'MAX : {"%.6f" % max(numbers)}') | ||
print(f'MIN : {"%.6f" % min(numbers)}') | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# شارژ موبایل | ||
# ID : 17244 | ||
# https://quera.ir/problemset/contest/17244/%D8%B3%D8%A4%D8%A7%D9%84-%D8%B4%D8%A7%D8%B1%DA%98-%D9%85%D9%88%D8%A8%D8%A7%DB%8C%D9%84 | ||
# https://b2n.ir/040446 | ||
|
||
print(sum([i for i in range(int(input()) + 1)])) | ||
|
||
########################################################### |
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
Solved/Soale Barname Nevisi Barname Nevisi Soal/Soale Barname Nevisi Barname Nevisi Soal.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# سوال برنامه نویسی برنامه نویسی سوال | ||
# ID : 3408 | ||
# https://quera.ir/problemset/contest/3408/%D8%B3%D8%A4%D8%A7%D9%84-%D8%B3%D9%88%D8%A7%D9%84-%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87-%D9%86%D9%88%DB%8C%D8%B3%DB%8C-%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87-%D9%86%D9%88%DB%8C%D8%B3%DB%8C-%D8%B3%D9%88%D8%A7%D9%84 | ||
# https://b2n.ir/w27089 | ||
|
||
number = input() | ||
string = input().split() | ||
|
||
print(' '.join(string[::-1])) | ||
|
||
########################################################### |
Binary file added
BIN
+213 KB
...Soale Barname Nevisi Barname Nevisi Soal/مسابقه _ سوال برنامه نویسی برنامه نویسی سوال.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# استارت-آپ باکلاس | ||
# ID : 10326 | ||
# https://quera.ir/problemset/contest/10326/%D8%B3%D8%A4%D8%A7%D9%84-%D8%A7%D8%B3%D8%AA%D8%A7%D8%B1%D8%AA-%D8%A2%D9%BE-%D8%A8%D8%A7%DA%A9%D9%84%D8%A7%D8%B3 | ||
# https://b2n.ir/m53560 | ||
|
||
string = [int(i) for i in input().split()] | ||
|
||
keeper = [0, 0, 0, 0] | ||
|
||
person = 0 | ||
while True: | ||
if 0 in string: | ||
break | ||
|
||
string[person % 4] -= 1 | ||
keeper[person % 4] += 1 | ||
string.insert(3, string.pop(0)) | ||
person += 1 | ||
|
||
print(" ".join([str(i) for i in keeper])) | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# تست بینایی | ||
# ID : 2659 | ||
# https://quera.ir/problemset/contest/2659/%D8%B3%D8%A4%D8%A7%D9%84-%D8%AA%D8%B3%D8%AA-%D8%A8%DB%8C%D9%86%D8%A7%DB%8C%DB%8C | ||
# https://b2n.ir/997305 | ||
|
||
letters = int(input()) | ||
original = input() | ||
student = input() | ||
|
||
number = 0 | ||
|
||
for i in range(letters): | ||
if original[i] != student[i]: | ||
number += 1 | ||
print(number) |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
Solved/To Cheghadr Ezafe Vazn Dari/To Cheghadr Ezafe Vazn Dari.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# تو چقدر اضافه وزن داری؟ | ||
# ID : 3404 | ||
# https://quera.ir/problemset/contest/3404/%D8%B3%D8%A4%D8%A7%D9%84-%D8%AA%D9%88-%DA%86%D9%82%D8%AF%D8%B1-%D8%A7%D8%B6%D8%A7%D9%81%D9%87-%D9%88%D8%B2%D9%86-%D8%AF%D8%A7%D8%B1%DB%8C | ||
# https://b2n.ir/785885 | ||
|
||
weight = float(input()) | ||
height = float(input()) | ||
|
||
bmi = weight/(height ** 2) | ||
|
||
print("%.2f" % bmi) | ||
if bmi < 18.5: | ||
print("Underweight") | ||
elif bmi < 25: | ||
print("Normal") | ||
elif bmi < 30: | ||
print("Overweight") | ||
else: | ||
print("Obese") | ||
|
||
########################################################### |
Binary file added
BIN
+328 KB
Solved/To Cheghadr Ezafe Vazn Dari/مسابقه _ تو چقدر اضافه وزن داری؟.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# گردو شکستم | ||
# ID : 3540 | ||
# https://quera.ir/problemset/contest/3540/%D8%B3%D8%A4%D8%A7%D9%84-%D8%AC%D8%B3%D8%AA-%D9%88-%D8%AC%D9%88-%D8%B1%DB%8C%D8%A7%D8%B6%DB%8C%D8%A7%D8%AA-%DA%AF%D8%B1%D8%AF%D9%88-%D8%B4%DA%A9%D8%B3%D8%AA%D9%85 | ||
# https://b2n.ir/037440 | ||
|
||
n, x, y = [int(i) for i in input().split()] | ||
|
||
xtime = n//x | ||
ytime = n//y | ||
|
||
for i in range(xtime): | ||
for j in range(ytime, -1, -1): | ||
if (i * x + j * y) == n: | ||
print(i, j) | ||
break | ||
else: | ||
continue | ||
break | ||
else: | ||
print(-1) | ||
|
||
########################################################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# مثلث خیام پاسکال | ||
# ID : 3410 | ||
# https://quera.ir/problemset/contest/3410/%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-%D8%B1%DB%8C%D8%A7%D8%B6%DB%8C%D8%A7%D8%AA-%D9%85%D8%AB%D9%84%D8%AB-%D8%AE%DB%8C%D8%A7%D9%85-%D9%BE%D8%A7%D8%B3%DA%A9%D8%A7%D9%84 | ||
# https://b2n.ir/275292 | ||
|
||
|
||
########################################################### |
Binary file not shown.