Upload files to "/"

This commit is contained in:
2025-03-05 20:29:26 +00:00
parent f83ccefadd
commit 024c950020
2 changed files with 12 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
def main():
with open('data.txt', 'r') as file:
data = file.readlines()
numbers = [int(line.strip()) for line in data if line.strip().isdigit()]
sorted_numbers = sorted(numbers)
with open('output.txt', 'w') as outfile:
for number in sorted_numbers:
outfile.write(f"{number}\n")
if __name__ == '__main__':
main()
BIN
View File
Binary file not shown.