Submission #916659
Source Code Expand
import scala.io.StdIn object Main { def main(args: Array[String]): Unit = { val N = StdIn.readLine() val ans = "CODEFESTIVAL2016" var counter = 0 for ((ch, i) <- N.toCharArray.zipWithIndex) { if (ch != ans.charAt(i)) { counter += 1 } } println(counter) } }
Submission Info
Submission Time | |
---|---|
Task | A - Signboard |
User | gdmiwasawa |
Language | Scala (2.11.7) |
Score | 100 |
Code Size | 325 Byte |
Status | AC |
Exec Time | 585 ms |
Memory | 21712 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | AC | 585 ms | 21712 KB |
02.txt | AC | 407 ms | 21536 KB |
03.txt | AC | 407 ms | 21188 KB |
04.txt | AC | 406 ms | 21428 KB |
05.txt | AC | 409 ms | 21452 KB |
06.txt | AC | 408 ms | 21308 KB |
07.txt | AC | 421 ms | 21568 KB |
08.txt | AC | 406 ms | 21444 KB |
09.txt | AC | 407 ms | 21552 KB |
s1.txt | AC | 424 ms | 21684 KB |
s2.txt | AC | 424 ms | 21180 KB |