feat(runner): compile Go and check answers per test group

This commit is contained in:
shira committed 2026-10-11 08:59:29 +03:00
1 parent e95c681165
commit afee564bf4
61 files changed
+2592 -143

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
// Wrong: int64 overflows, so only the group with huge numbers fails.
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
scanner := bufio.NewScanner(os.Stdin)
scanner.Split(bufio.ScanWords)
var total int64
for scanner.Scan() {
value, err := strconv.ParseInt(scanner.Text(), 10, 64)
if err != nil {
os.Exit(2)
}
total += value
}
fmt.Println(total)
}