Új hozzászólás Aktív témák
-
olli
tag
Sziasztok!
import itertools
# Define the range of numbers (1 to 90)
numbers = range(1, 91)
# Define the target sum
target_sum = 225
# Generate all combinations of 5 numbers from the range 1 to 90
combinations = itertools.combinations(numbers, 5)
# Filter combinations whose sum equals the target_sum
valid_combinations = [comb for comb in combinations if sum(comb) == target_sum]
# Format the first 299018 valid combinations for Excel
formatted_combinations = "\n".join([",".join(map(str, comb)) for comb in valid_combinations[:299018]])
# Print the formatted combinations for Excel
print(formatted_combinations)
A fenti táblázat 299018 sora helyett csak 9030 sort kaptam vissza. Ez korlát, vagy valahol be kell állítani?
Új hozzászólás Aktív témák
- HP EliteBook 650 G9 / i5-1245U / 32GB RAM / 512GB SSD / Garanciás / Hibátlan
- Anker SOLIX C300X hordozható töltőállomás (288Wh) - LiFePO4 - 140W USB-C - szivargyújtó
- DJI Mavic 3 Cine Premium Combo - Apple ProRes & 1TB SSD - DJI RC Pro - 3db akku - 2 év garancia
- Asus ROG Scar 18 - RTX 5090 - 64GB Ram 2x2TB SSD
- Bomba ár! Dell Vostro 5620 - i5-1240P I 8GB I 256SSD I 16" WUXGA I Cam I W11 I Garancia!
- Bomba ár! Dell Latitude E5530 - i5-3GEN I 8GB I 500GB I 15,6" FHD I HDMI I Cam I W10 I Garancia!
- LG UltraGear 34GS95QE OLED Monitor! 3440x1440 / 0.03ms / 240Hz / FreeSync / G-Sync! BeszámítOK!
- Telefon felvásárlás!! Honor 400 Lite, Honor 400, Honor 400 Pro
- 27% - Asus külső Optikai megható!
- Keresünk iPhone 16/16e/16 Plus/16 Pro/16 Pro Max
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
