This file contains hidden or 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
| # cook your dish here | |
| T = int(input()) | |
| # Test Cases Iteration | |
| for __ in range(T): | |
| N = int(input()) | |
| listi = [] | |
| i,j = 0,0 | |
| cntt = 0 | |
| count_on_me = 0 | |
| #Accept Two Dimensional List in Python |
This file contains hidden or 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
| import os | |
| from PIL import Image | |
| from concurrent.futures import ThreadPoolExecutor, as_completed | |
| # ====== CONFIGURATION ====== | |
| TARGET_KB = 100 # desired max size per image (in KB) | |
| FORMATS = (".jpg", ".jpeg", ".png") # image formats to process | |
| CONVERT_TO = "WEBP" # output format (WEBP, JPEG, etc.) | |
| DELETE_ORIGINAL = False # set True to remove old images | |
| MAX_WORKERS = 8 # number of parallel threads |
This file contains hidden or 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
| {} |