Submission #581004


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 A - AtCoder社の給料
User tomoki
Language Scala (2.9.1)
Score 0
Code Size 338 Byte
Status WA
Exec Time 954 ms
Memory 42816 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 14
Set Name Test Cases
All 00_sample_01.txt, 00_sample_02.txt, test_100.txt, test_14.txt, test_29.txt, test_4.txt, test_42.txt, test_48.txt, test_54.txt, test_59.txt, test_71.txt, test_72.txt, test_84.txt, test_96.txt
Case Name Status Exec Time Memory
00_sample_01.txt WA 850 ms 42756 KB
00_sample_02.txt WA 847 ms 42740 KB
test_100.txt WA 954 ms 42816 KB
test_14.txt WA 891 ms 42756 KB
test_29.txt WA 844 ms 42692 KB
test_4.txt WA 836 ms 42688 KB
test_42.txt WA 869 ms 42752 KB
test_48.txt WA 918 ms 42624 KB
test_54.txt WA 865 ms 42816 KB
test_59.txt WA 887 ms 42724 KB
test_71.txt WA 897 ms 42796 KB
test_72.txt WA 911 ms 42688 KB
test_84.txt WA 884 ms 42716 KB
test_96.txt WA 897 ms 42756 KB