Sources
verd shows Problems from more than one problem set in one list. Turn each on or off in Settings (5, the Sources group) or with source_cf / source_cses in config.toml. Codeforces is on by default; CSES is off.
| Source | What you get | Submitting | Solved marks |
|---|---|---|---|
| Codeforces | Ratings, tags, statements, Verdict tracking, stats | Browser handoff, or direct | From your Submissions |
| CSES | 400 tasks. The topic section (for example "Dynamic Programming") is the tag; the solver count is the popularity. Limits, statement and the example from the task page | Browser handoff to cses.fi/problemset/submit/<id>/ (CSES needs a login and has no API) |
By hand with m, or pulled in with verd sync cses |
Using CSES#
- Settings, CSES, turn it on. Press
ctrl+ron a list to load the tasks (24 hours cache, then refreshed on start). - CSES tasks appear in the same list as
CSES1068. Search by name, topic or id. Filter with the Source field in the filter modal (f) orsrc:csesin the:prompt, for examplesrc:cses +graph. enteropens a task.eedits<workspace>/cses/<id>/main.<ext>,truns the example and your Custom Tests,Sstress tests it.scopies the Solution and opens the CSES submit page. verd cannot read the verdict there, so pressmon the task to mark it solved (magain clears it).
CSES shows a single example per task, so local runs cover that plus the tests you add. Marks live only in verd's own database. Codeforces stats do not include CSES.
Statements are fetched once and cached. verd waits a second between requests to cses.fi and identifies itself in the User-Agent.
Sync solved tasks#
verd sync cses # or just `verd sync` for every provider
The first run asks for your CSES username and password (the password is typed hidden and never stored). verd signs in the way the website does, keeps only the session cookie (OS keyring, or a 0600 file next to credentials.json), and reads the task list's solved icons. Every solved task becomes a mark. After that verd sync cses and Y on the Problems list reuse the session without asking; when it expires you are asked again. verd logout cses forgets the session.
Sync only adds marks: it never clears one you set with m. Tasks you merely tried are not marked. CSES has no API, so this reads the same HTML you see in a browser; if CSES changes it, verd sync says what it could not find.
Adding a provider
A provider is a provider value in cmd/verd/sync.go: a login (username and password to session cookie) and a function listing the solved ids. The marks, the keyring storage, the verd sync command and the Y key come with it. LeetCode would fit the same shape (its solved list needs a session cookie too), but it would also need its own source for the problems themselves, so it is not planned yet.
USACO#
Not implemented. Its statements are public (usaco.org/index.php?page=viewproblem2&cpid=N) and contests list their problems on results pages, but submitting needs a login, so it would use the same browser handoff and manual marks as CSES. Official test data is published as per-contest zip files, which could give full local tests; that is the main reason to add it. A new source needs one Source tag in internal/cf/source.go, a fetcher beside internal/cses, and a line in refresh.Source.