Submission #790373
Source Code Expand
object Main {
def main(args: Array[String]): Unit = {
val sc = new java.util.Scanner(System.in)
val s = sc.next
val i = sc.nextInt
println(s(i-1))
}
def solve(a: Int, b: Int): Int = {
a + b
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 添字 |
| User | tyng |
| Language | Scala (2.11.7) |
| Score | 100 |
| Code Size | 237 Byte |
| Status | AC |
| Exec Time | 841 ms |
| Memory | 21976 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt |
| All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0_00.txt | AC | 841 ms | 21568 KiB |
| 0_01.txt | AC | 714 ms | 21824 KiB |
| 0_02.txt | AC | 718 ms | 21808 KiB |
| 0_03.txt | AC | 729 ms | 21920 KiB |
| 1_00.txt | AC | 709 ms | 21976 KiB |
| 1_01.txt | AC | 716 ms | 21952 KiB |
| 1_02.txt | AC | 734 ms | 21944 KiB |
| 1_03.txt | AC | 702 ms | 21832 KiB |