Submission #4015675
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); if (a.substring(a.length() - 1, a.length()).equals(b.substring(0, 1)) && b.substring(b.length() - 1, b.length()).equals(c.substring(0, 1))) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Submission Info
Submission Time | |
---|---|
Task | C - 双子と○×ゲーム |
User | proteasome |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 506 Byte |
Status | WA |
Exec Time | 92 ms |
Memory | 23252 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt |
All | sample-01.txt, sample-02.txt, test-01.txt, test-02.txt, test-03.txt, test-04.txt, test-05.txt, test-06.txt, test-07.txt, test-08.txt, test-09.txt, test-10.txt, test-11.txt, test-12.txt, test-13.txt, test-14.txt, test-15.txt, test-16.txt, test-17.txt, test-18.txt, test-19.txt, test-20.txt, sample-01.txt, sample-02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample-01.txt | WA | 91 ms | 19156 KB |
sample-02.txt | WA | 89 ms | 19796 KB |
test-01.txt | WA | 92 ms | 21332 KB |
test-02.txt | WA | 90 ms | 21588 KB |
test-03.txt | WA | 90 ms | 18636 KB |
test-04.txt | WA | 90 ms | 19412 KB |
test-05.txt | WA | 89 ms | 19668 KB |
test-06.txt | WA | 90 ms | 18644 KB |
test-07.txt | WA | 91 ms | 21588 KB |
test-08.txt | WA | 91 ms | 20948 KB |
test-09.txt | WA | 91 ms | 19412 KB |
test-10.txt | WA | 90 ms | 21844 KB |
test-11.txt | WA | 91 ms | 20820 KB |
test-12.txt | WA | 91 ms | 23252 KB |
test-13.txt | WA | 89 ms | 20564 KB |
test-14.txt | WA | 91 ms | 19028 KB |
test-15.txt | WA | 91 ms | 21204 KB |
test-16.txt | WA | 92 ms | 20052 KB |
test-17.txt | WA | 89 ms | 19796 KB |
test-18.txt | WA | 92 ms | 21588 KB |
test-19.txt | WA | 90 ms | 20820 KB |
test-20.txt | WA | 90 ms | 19284 KB |