题解 | #成绩输入输出# Scala解法

成绩输入输出

http://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c

// 导入StdIn包
import scala.io.StdIn

object Main {
    def main(args: Array[String]): Unit = {
        val line = StdIn.readLine()
        val nums = line.split(" ")
        print("score1=%s,score2=%s,score3=%s".format(nums(0), nums(1), nums(2)))
    }
}
全部评论

相关推荐

06-18 13:28
已编辑
门头沟学院 Web前端
爱睡觉的冰箱哥:《给予你300的工资》,阴的没边了
点赞 评论 收藏
分享
06-28 22:48
已编辑
广东金融学院 Java
小浪_Coding:学院本+这俩项目不是buff叠满了嘛
点赞 评论 收藏
分享
07-09 15:55
门头沟学院 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务