Skip to content

Commit 351049b

Browse files
RezwanRezwan
Rezwan
authored and
Rezwan
committed
Modified
1 parent 320c334 commit 351049b

5 files changed

+13
-4
lines changed

B - Two Switches.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
A, B, C, D = map(int , input().split())
2+
if min(B, D) - max(A, C) <= 0:
3+
print(0)
4+
else:
5+
print(min(B, D) - max(A, C))

Conditional Statements.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,7 @@
103103
** You are now able to solve following online-judge problems.
104104
------------------------------------------------------------
105105
1. http://codeforces.com/problemset/problem/4/A
106-
- Solution: https://github.com/rezwanulhaquerezwan/python-programming-with-data-structures-and-algorithms/blob/master/A.%20Watermelon.py
106+
107+
2. http://abc070.contest.atcoder.jp/tasks/abc070_b
108+
107109
'''

Input Output.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,5 @@
108108
Entered number is 233.5
109109
'''
110110

111+
a = int(input())
112+
print(a**a) # a^a

Python Variables and Data Types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@
6565
** You are now able to solve following online-judge problems.
6666
------------------------------------------------------------
6767
1. http://codeforces.com/problemset/problem/1/A
68-
- Solution : https://github.com/rezwanulhaquerezwan/python-programming-with-data-structures-and-algorithms/blob/master/A.%20Theatre%20Square.py
68+
6969
'''

String Formatting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737

3838
##################################
3939
a = float(input())
40-
print("Price of this t-shirt is %.10f" % a)
40+
print("Price of this t-shirt is %.9f" % a)
4141
'''
4242
Input:
4343
855.75
4444
4545
Output:
46-
Price of this t-shirt is 855.7500000000
46+
Price of this t-shirt is 855.750000000
4747
'''

0 commit comments

Comments
 (0)