結果

問題 No.2960 Judgement
ユーザー ImTaboo
提出日時 2024-12-09 11:36:17
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 301 ms / 777 ms
コード長 300 bytes
コンパイル時間 10,004 ms
コンパイル使用メモリ 432,872 KB
実行使用メモリ 51,056 KB
最終ジャッジ日時 2024-12-09 11:36:37
合計ジャッジ時間 16,830 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main (){
    var n = 0
    val s = readln().split(" ")
    val l = s.size
    for ( i in 0..<l){
        if ( (s[i] == "AC" ) or (s[i] == "NoOut")){
            n += 1

        }
    }
    if ( n > 5 ){ println("Win") }
    if ( n == 5 ){ println("Draw") }
    if ( n < 5 ){ println("Lose") }

}
0