add LC2 skeleton files for 7 ACM I/O patterns

This commit is contained in:
2026-06-06 17:31:07 +08:00
parent ec1fd8e96a
commit c19e666832
8 changed files with 451 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
//go:build ignore
// 多行输入,每行两个数,输出每行之和(EOF 结束)
// 输入示例:
// 1 2
// 3 4
// 5 6
// 输出示例:
// 3
// 7
// 11
package main
import (
"fmt"
"io"
)
func main() {
var a, b int
for {
// TODO: 读入 a, b,遇到 EOF 退出循环
fmt.Println(a + b)
}
}