You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/oj/cf41-60.md
+91-1Lines changed: 91 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: "CF Solutions 41-60"
5
5
date: "2013-12-12 02:12:52 +0200"
6
6
author: wh1100717
7
7
version: 1.0.0
8
-
categories: [13/20]
8
+
categories: [18/20]
9
9
---
10
10
11
11
```
@@ -919,7 +919,97 @@ output
919
919
####Code:
920
920
921
921
```python
922
+
n,k = [int(x) for x inraw_input().split()]
923
+
for i inrange(n):
924
+
f,t = [int(x) for x inraw_input().split()]
925
+
maxf = (f - t + k ifnotlocals().has_key("result") or f - t + k > maxf else maxf) if t > k else (f ifnotlocals().has_key("result") or f > maxf else maxf)
0 commit comments