
Album
米Teen唔鐘意玩現成品,喜歡由零件開始砌。99次失敗唔係問題,最緊要係有1次成功!
米Teen總部設在聖公會白約翰會督中學506室,在午膳後和放學後集會。有興趣參與的同學,請與會長或導師聯絡。
2025-08-08 22:49:36
Rm506 溫度31℃ 濕度90%
2025-08-07 11:29:14
LIGHT Noise 0 0
2025-08-07 13:53:08
LIGHT Disturber 0 0
2025-08-07 13:53:47
LIGHT Disturber 0 0
2025-08-08 10:49:02
LIGHT Lightning 31 0
2025-08-08 10:53:12
LIGHT Disturber 0 0
2025-08-08 11:01:14
LIGHT Disturber 0 0
2025-08-08 12:14:42
LIGHT Lightning 14 2
2025-08-08 14:03:06
LIGHT Disturber 0 0
2025-08-08 17:32:12
LIGHT Disturber 0 0
2025-08-08 17:32:13
LIGHT Disturber 0 0
Rm506 溫度31℃ 濕度90%
2025-08-07 11:29:14
LIGHT Noise 0 0
2025-08-07 13:53:08
LIGHT Disturber 0 0
2025-08-07 13:53:47
LIGHT Disturber 0 0
2025-08-08 10:49:02
LIGHT Lightning 31 0
2025-08-08 10:53:12
LIGHT Disturber 0 0
2025-08-08 11:01:14
LIGHT Disturber 0 0
2025-08-08 12:14:42
LIGHT Lightning 14 2
2025-08-08 14:03:06
LIGHT Disturber 0 0
2025-08-08 17:32:12
LIGHT Disturber 0 0
2025-08-08 17:32:13
LIGHT Disturber 0 0
Max IDs on a photo paper.
Max IDs on...
> > >Find the maximum number of ID photos with specified size on a photo paper with specified size.
1 | # Author: HUANG KWUN HOI (SKHBBSS, class 4D) |
2 | # Last modified: 2020.9.4 |
3 | print('Enter the height of ID photo(pixel)') |
4 | id_photo_height = int(input()) |
5 | print('Enter the width of ID photo(pixel)') |
6 | id_photo_width = int(input()) |
7 | print('Enter the height of photo paper(pixel)') |
8 | photo_paper_height = int(input()) |
9 | print('Enter the width of photo paper(pixel)') |
10 | photo_paper_width = int(input()) |
11 | place_horizontally_1 = photo_paper_height // id_photo_width |
12 | place_vertically_1 = photo_paper_width // id_photo_height |
13 | method_one = place_horizontally_1 * place_vertically_1 |
14 | place_horizontally_2 = photo_paper_height // id_photo_height |
15 | place_vertically_2 = photo_paper_width // id_photo_width |
16 | method_two = place_horizontally_2 * place_vertically_2 |
17 | if method_one >= method_two: |
18 | print(str(place_horizontally_1) + ' x ' +str(place_vertically_1)) |
19 | print('=' + str(method_one)) |
20 | else: |
21 | print(str(place_horizontally_2) + ' x ' +str(place_vertically_2)) |
22 | print('=' + str(method_two)) |

Album
米Teen唔鐘意玩現成品,喜歡由零件開始砌。99次失敗唔係問題,最緊要係有1次成功!
米Teen總部設在聖公會白約翰會督中學506室,在午膳後和放學後集會。有興趣參與的同學,請與會長或導師聯絡。
2025-08-08 22:49:36
Rm506 溫度31℃ 濕度90%
2025-08-07 11:29:14
LIGHT Noise 0 0
2025-08-07 13:53:08
LIGHT Disturber 0 0
2025-08-07 13:53:47
LIGHT Disturber 0 0
2025-08-08 10:49:02
LIGHT Lightning 31 0
2025-08-08 10:53:12
LIGHT Disturber 0 0
2025-08-08 11:01:14
LIGHT Disturber 0 0
2025-08-08 12:14:42
LIGHT Lightning 14 2
2025-08-08 14:03:06
LIGHT Disturber 0 0
2025-08-08 17:32:12
LIGHT Disturber 0 0
2025-08-08 17:32:13
LIGHT Disturber 0 0
Rm506 溫度31℃ 濕度90%
2025-08-07 11:29:14
LIGHT Noise 0 0
2025-08-07 13:53:08
LIGHT Disturber 0 0
2025-08-07 13:53:47
LIGHT Disturber 0 0
2025-08-08 10:49:02
LIGHT Lightning 31 0
2025-08-08 10:53:12
LIGHT Disturber 0 0
2025-08-08 11:01:14
LIGHT Disturber 0 0
2025-08-08 12:14:42
LIGHT Lightning 14 2
2025-08-08 14:03:06
LIGHT Disturber 0 0
2025-08-08 17:32:12
LIGHT Disturber 0 0
2025-08-08 17:32:13
LIGHT Disturber 0 0