update to readme

This commit is contained in:
ShazidMahsrafi 2023-12-31 16:13:57 +06:00
parent 2b70713ff9
commit 39a95c0812
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import os import os
folder_path = "D:\Programming\Problems solves\Codeforces\Codes" folder_path = "D:\Programming\Problems solves\Codeforces\Codes"
output_file = "D:\Programming\Problems solves\Codeforces\Readme Generator\Readme.txt" output_file = "D:\Programming\Problems solves\Codeforces\Readme.md"
qs = "[Question](https://codeforces.com/problemset/problem/" qs = "[Question](https://codeforces.com/problemset/problem/"
sol = "[Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/" sol = "[Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/"
@ -21,18 +21,18 @@ for folder_name in folder_names:
entries.sort(key=lambda x: int(x.split(' ')[0])) entries.sort(key=lambda x: int(x.split(' ')[0]))
Intro_file = "D:\Programming\Problems solves\Codeforces\Readme Generator\Assets\Start.txt" Intro_file = "D:\Programming\Problems solves\Codeforces\Readme Generator Assets\Intro section.txt"
About_file = "D:\Programming\Problems solves\Codeforces\Readme Generator\Assets\End.txt" Outro_file = "D:\Programming\Problems solves\Codeforces\Readme Generator Assets\Outro section.txt"
with open(Intro_file, 'r') as start: with open(Intro_file, 'r') as start:
intro_lines = start.readlines() intro_lines = start.readlines()
with open(About_file, 'r') as end: with open(Outro_file, 'r') as end:
about_lines = end.readlines() outro_lines = end.readlines()
with open(output_file, 'w') as file: with open(output_file, 'w') as file:
file.write(''.join(intro_lines)) file.write(''.join(intro_lines))
file.write('\n| ') file.write('\n| ')
file.write('\n| '.join(entries)) file.write('\n| '.join(entries))
file.write('\n') file.write('\n')
file.write(''.join(about_lines)) file.write(''.join(outro_lines))

View File

@ -176,7 +176,7 @@ This repository contains my solutions of Codeforces problems. They are in C++ la
| 1873 A | Short Sort | [Question](https://codeforces.com/problemset/problem/1873/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20A%20-%20Short%20Sort) | 1873 A | Short Sort | [Question](https://codeforces.com/problemset/problem/1873/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20A%20-%20Short%20Sort)
| 1873 B | Good Kid | [Question](https://codeforces.com/problemset/problem/1873/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20B%20-%20Good%20Kid) | 1873 B | Good Kid | [Question](https://codeforces.com/problemset/problem/1873/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20B%20-%20Good%20Kid)
| 1873 C | Target Practice | [Question](https://codeforces.com/problemset/problem/1873/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20C%20-%20Target%20Practice) | 1873 C | Target Practice | [Question](https://codeforces.com/problemset/problem/1873/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20C%20-%20Target%20Practice)
| 1873 D | 1 D Eraser | [Question](https://codeforces.com/problemset/problem/1873/D) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20D%20-%201%20D%20Eraser) | 1873 D | 1D Eraser | [Question](https://codeforces.com/problemset/problem/1873/D) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1873%20D%20-%201D%20Eraser)
| 1875 A | Jellyfish and Undertale | [Question](https://codeforces.com/problemset/problem/1875/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1875%20A%20-%20Jellyfish%20and%20Undertale) | 1875 A | Jellyfish and Undertale | [Question](https://codeforces.com/problemset/problem/1875/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1875%20A%20-%20Jellyfish%20and%20Undertale)
| 1878 A | How Much Does Daytona Cost | [Question](https://codeforces.com/problemset/problem/1878/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1878%20A%20-%20How%20Much%20Does%20Daytona%20Cost) | 1878 A | How Much Does Daytona Cost | [Question](https://codeforces.com/problemset/problem/1878/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1878%20A%20-%20How%20Much%20Does%20Daytona%20Cost)
| 1878 B | Aleksa and Stack | [Question](https://codeforces.com/problemset/problem/1878/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1878%20B%20-%20Aleksa%20and%20Stack) | 1878 B | Aleksa and Stack | [Question](https://codeforces.com/problemset/problem/1878/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1878%20B%20-%20Aleksa%20and%20Stack)