Skip to content

Commit f9dd4e6

Browse files
committed
add log2web images
1 parent dd46cd6 commit f9dd4e6

File tree

9 files changed

+100
-1
lines changed

9 files changed

+100
-1
lines changed

img/Thumbs.db

0 Bytes
Binary file not shown.

img/cf/Thumbs.db

0 Bytes
Binary file not shown.

img/hljemm/Thumbs.db

0 Bytes
Binary file not shown.

img/python/log2web/log2web.png

82.8 KB
Loading

img/python/log2web/log2webnoajax.png

82.3 KB
Loading

img/vpn/Thumbs.db

0 Bytes
Binary file not shown.

img/zoj/Thumbs.db

0 Bytes
Binary file not shown.

python/oj/cf41-60.md

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: "CF Solutions 41-60"
55
date: "2013-12-12 02:12:52 +0200"
66
author: wh1100717
77
version: 1.0.0
8-
categories: [13/20]
8+
categories: [18/20]
99
---
1010

1111
```
@@ -919,7 +919,97 @@ output
919919
####Code:
920920

921921
```python
922+
n,k = [int(x) for x in raw_input().split()]
923+
for i in range(n):
924+
f,t = [int(x) for x in raw_input().split()]
925+
maxf = (f - t + k if not locals().has_key("result") or f - t + k > maxf else maxf) if t > k else (f if not locals().has_key("result") or f > maxf else maxf)
926+
print maxf
927+
```
928+
929+
-------------------------------------------------------------------------------
930+
931+
214A
922932

933+
####Code:
934+
935+
```python
936+
n,m = map(int, raw_input().split())
937+
print sum([1 for a in range(n+1) if n >= a**2 and m == a + (a**2 - n)**2])
923938
```
924939

940+
-------------------------------------------------------------------------------
941+
942+
37A
943+
944+
####Code:
945+
946+
```python
947+
n = input()
948+
inputs = map(int, raw_input().split())
949+
totalN = 0
950+
maxHeight = 1
951+
for i in range(n):
952+
bar = inputs[i]
953+
height = 1
954+
if bar == -1:
955+
continue
956+
else: totalN += 1
957+
for j in range(i+1,n):
958+
if inputs[j] == bar:
959+
inputs[j] = -1
960+
height += 1
961+
maxHeight = max(maxHeight, height)
962+
print "%d %d" %(maxHeight, totalN)
963+
```
964+
965+
```python
966+
#Really cool solution
967+
n = input()
968+
s = raw_input().split()
969+
print max(s.count(i) for i in s), len(set(s))
970+
```
971+
972+
-------------------------------------------------------------------------------
973+
974+
330A
975+
976+
####Code:
977+
978+
```python
979+
rows, columns = map(int, raw_input().split())
980+
cells = []
981+
for rowN in range(rows): cells.append(list(raw_input()))
982+
result = 0
983+
for i in range(rows):
984+
flag = True
985+
for j in range(columns):
986+
if cells[i][j] == 'S':
987+
flag = False
988+
break
989+
if flag:
990+
for j in range(columns):
991+
cells[i][j] = 'x'
992+
for j in range(columns):
993+
flag = True
994+
for i in range(rows):
995+
if cells[i][j] == 'S':
996+
flag = False
997+
break
998+
if flag:
999+
for i in range(rows):
1000+
cells[i][j] = 'x'
1001+
for i in range(rows):
1002+
for j in range(columns):
1003+
if cells[i][j] == 'x': result += 1
1004+
print result
1005+
```
1006+
-------------------------------------------------------------------------------
1007+
1008+
285A
1009+
1010+
####Code:
1011+
1012+
```python
1013+
1014+
```
9251015
-------------------------------------------------------------------------------

python/oj/cf61-80.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: python_item
3+
permalink: /python/oj/cf61-80/
4+
title: "CF Solutions 61-80"
5+
date: "2014-1-13 02:12:52 +0200"
6+
author: wh1100717
7+
version: 1.0.0
8+
categories: [0/20]
9+
---

0 commit comments

Comments
 (0)