Submission #581001


Source Code Expand

Copy
object Main extends App {
    val s,t = readLine()
    if(s.zip(t).forall({case (a,b) => a == b || (a == '@' && "atcoder".contains(b) || (b == '@' && "atcoder".contains(a)}))
        println("You can win")
    else
        println("You will lose")
}

Submission Info

Submission Time
Task B - AtCoderトランプ
User tomoki
Language Scala (2.9.1)
Score 0
Code Size 257 Byte
Status CE

Compile Error

./Main.scala:3: error: ')' expected but '}' found.
    if(s.zip(t).forall({case (a,b) => a == b || (a == '@' && "atcoder".contains(b) || (b == '@' && "atcoder".contains(a)}))
                                                                                                                        ^
one error found