1. 常量 & 变量
1.1 可读写变量(var)
var x initValue // x 称为可读写变量注意:当 var 声明的变量做成员属性时,默认提供 setter/getter 方法。
1.2 只读变量(val)
val x initValue // x 称为只…
一、题目
1、题目描述 After the regional contest, all the ACMers are walking alone a very long avenue to the dining hall in groups. Groups can vary in size for kinds of reasons, which means, several players could walk together, forming a group. As the …