Submission #6608986
Source Code Expand
using System;
using System.IO;
using System.Text;
class Program
{
static void Main(string[] args)
{
var p = new Program();
var S = Console.ReadLine();
string result = "No";
if (S[1] == S[2])
{
result = "No";
}
else if (S[0] == S[1] && S[2] == S[3])
{
result = "Yes";
}
else
{
result = "No";
}
//標準出力ストリームの作成
var sw = new StreamWriter(Console.OpenStandardOutput())
{
AutoFlush = false
};
//Consoleの出力ストリームを変更する
Console.SetOut(sw);
Console.WriteLine(result);
Console.Out.Flush();
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - DDCC型文字列 |
| User | meimaru |
| Language | C# (Mono 4.6.2.0) |
| Score | 100 |
| Code Size | 793 Byte |
| Status | AC |
| Exec Time | 20 ms |
| Memory | 11092 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 20 ms | 11092 KiB |
| 02.txt | AC | 19 ms | 9044 KiB |
| 03.txt | AC | 20 ms | 11092 KiB |
| 04.txt | AC | 19 ms | 9044 KiB |
| 05.txt | AC | 20 ms | 11092 KiB |
| 06.txt | AC | 19 ms | 9044 KiB |
| 07.txt | AC | 19 ms | 9044 KiB |
| 08.txt | AC | 20 ms | 11092 KiB |
| 09.txt | AC | 20 ms | 11092 KiB |
| sample_01.txt | AC | 20 ms | 11092 KiB |
| sample_02.txt | AC | 19 ms | 9044 KiB |
| sample_03.txt | AC | 19 ms | 9044 KiB |