Submission #3416967
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] sS = Console.ReadLine().Trim().Split(' '); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // 解析 string sOut = "No"; int iMch = 0; for (int i = 0; i < sS[0].Length - 1; i++) { if (sS[0][i] == sS[0][i + 1]) { iMch += 1; } } if (iMch >= 2) { sOut = "Yes"; } // 出力 Console.WriteLine("{0}", sOut.ToString().Trim()); sw.Stop(); #if DEBUG Console.WriteLine(); Console.WriteLine("{0}", sw.Elapsed.ToString()); Console.WriteLine("続行するには何かキーを押してください..."); Console.ReadKey(); #endif } }
Submission Info
Submission Time | |
---|---|
Task | A - Good Integer |
User | starlightsheep |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 999 Byte |
Status | WA |
Exec Time | 21 ms |
Memory | 13268 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, sample_03.txt |
All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, sample_01.txt, sample_02.txt, sample_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01.txt | WA | 21 ms | 13268 KB |
02.txt | AC | 21 ms | 13268 KB |
03.txt | AC | 21 ms | 11220 KB |
04.txt | AC | 20 ms | 11220 KB |
05.txt | AC | 21 ms | 11220 KB |
06.txt | AC | 20 ms | 9172 KB |
07.txt | AC | 21 ms | 11220 KB |
08.txt | AC | 20 ms | 9172 KB |
09.txt | AC | 21 ms | 11220 KB |
10.txt | AC | 21 ms | 11220 KB |
11.txt | AC | 21 ms | 11220 KB |
sample_01.txt | AC | 21 ms | 11220 KB |
sample_02.txt | AC | 21 ms | 11220 KB |
sample_03.txt | AC | 20 ms | 9172 KB |