Start sum-of-sortable-integers

This commit is contained in:
usaco site
2026-10-20 10:58:27 +00:00
parent c6b82588b1
commit f15ba26bda
11 changed files with 177 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// driver.h - generated by 'usaco new' from LeetCode's metadata (edit freely).
// Reads sum-of-sortable-integers.in in LeetCode's testcase format, cases back to back:
// one argument per line
// and writes one answer per case to sum-of-sortable-integers.out, formatted the way LeetCode
// shows its output. Parsing/printing helpers: leetcode.h.
int main() {
freopen("sum-of-sortable-integers.in", "r", stdin);
freopen("sum-of-sortable-integers.out", "w", stdout);
for (vector<string> in; lc::read_case(in, 1);) {
auto nums = lc::parse<vector<int>>(in[0]);
cout << lc::show(Solution().sortableIntegers(nums)) << '\n';
}
}