cfscores
Display Codeforces contest scores and rankings
SYNOPSIS
cfscores [options]
PARAMETERS
--problem
Specify the Codeforces problem code (e.g., 1A, 1500B).
--contest
Specify the Codeforces contest ID.
--user
Filter submissions by a specific Codeforces username.
--language
Filter submissions by programming language (e.g., C++, Java, Python).
--verdict
Filter submissions by verdict (e.g., Accepted, Wrong answer).
--count
Limit the number of submissions to display.
--sort
Sort the submissions by a specific metric (e.g., time, memory, length). Possible metrics depends on implementation.
--help
Display help information.
DESCRIPTION
The `cfscores` command is a command-line tool designed to evaluate and compare the performance of different Codeforces submissions. It automates the process of fetching submission details, ranking them based on various metrics (such as execution time, memory usage, and verdict), and presenting the results in a user-friendly format.
It allows users to quickly identify the most efficient solutions to a given Codeforces problem, which can be invaluable for learning, code optimization, and competitive programming practice. The tool can be configured to filter submissions based on language, user, or problem, and to display specific performance metrics.
The primary goal of `cfscores` is to streamline the analysis of Codeforces submissions, making it easier for users to learn from and improve upon existing solutions. By automatically gathering and presenting relevant data, it removes the need for manual data collection and analysis, saving time and effort.
CAVEATS
The `cfscores` command relies on the Codeforces API, so its functionality is contingent on the API's availability and stability. Rate limiting on the API could affect performance. The metrics used for ranking submissions may vary based on the implementation.
EXAMPLE USAGE
To view the top 10 accepted C++ solutions for problem 1A in contest 1, sorted by execution time:
`cfscores --contest 1 --problem 1A --language C++ --verdict Accepted --count 10 --sort time`
OUTPUT FORMAT
The output format usually includes the submission ID, username, language, verdict, execution time, and memory usage. The output is often presented in a table format for easy readability.