Submission #1239900
Source Code Expand
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { int ans = 0; string a = Console.ReadLine(); var h1 = "ADOPQR"; int[]d=new int[4]; for (int i = 0; i < a.Length; i++) { if (h1.Contains(a.Substring(i,1))) { d[i]++; } if (a[i]=='B') { d[i] += 2;}// break; } } Console.WriteLine(d[0]==0&&d[1]==1-1&&d[2]==1&&d[3]==0 ? "yes" : "no"); Console.ReadLine(); } }
Submission Info
Submission Time | |
---|---|
Task | A - UTPC |
User | rayhotate |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 513 Byte |
Status | AC |
Exec Time | 20 ms |
Memory | 13140 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00-sample-00, 00-sample-01, 00-sample-02, 10-yes-00, 10-yes-01, 10-yes-02, 10-yes-03, 10-yes-04, 10-yes-05, 10-yes-06, 10-yes-07, 10-yes-08, 10-yes-09, 20-all-00, 20-all-01, 20-all-02, 20-all-03, 20-all-04, 20-all-05, 20-all-06, 20-all-07, 20-all-08, 20-all-09, 20-all-10, 20-all-11, 20-all-12, 20-all-13, 20-all-14, 20-all-15, 20-all-16, 20-all-17, 20-all-18, 20-all-19, 20-all-20, 20-all-21, 20-all-22, 20-all-23, 20-all-24, 20-all-25, 20-all-26, 20-all-27, 20-all-28, 20-all-29, 30-hand-00, 30-hand-01 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00-sample-00 | AC | 20 ms | 11220 KB |
00-sample-01 | AC | 19 ms | 9044 KB |
00-sample-02 | AC | 20 ms | 11092 KB |
10-yes-00 | AC | 19 ms | 9044 KB |
10-yes-01 | AC | 19 ms | 9044 KB |
10-yes-02 | AC | 19 ms | 9044 KB |
10-yes-03 | AC | 19 ms | 9044 KB |
10-yes-04 | AC | 19 ms | 9044 KB |
10-yes-05 | AC | 19 ms | 9044 KB |
10-yes-06 | AC | 19 ms | 9044 KB |
10-yes-07 | AC | 19 ms | 9044 KB |
10-yes-08 | AC | 20 ms | 11092 KB |
10-yes-09 | AC | 19 ms | 9044 KB |
20-all-00 | AC | 19 ms | 11092 KB |
20-all-01 | AC | 19 ms | 9044 KB |
20-all-02 | AC | 19 ms | 11092 KB |
20-all-03 | AC | 20 ms | 11092 KB |
20-all-04 | AC | 20 ms | 13140 KB |
20-all-05 | AC | 19 ms | 11092 KB |
20-all-06 | AC | 19 ms | 11092 KB |
20-all-07 | AC | 19 ms | 9044 KB |
20-all-08 | AC | 19 ms | 9044 KB |
20-all-09 | AC | 19 ms | 9044 KB |
20-all-10 | AC | 19 ms | 9044 KB |
20-all-11 | AC | 20 ms | 9044 KB |
20-all-12 | AC | 19 ms | 11092 KB |
20-all-13 | AC | 19 ms | 9044 KB |
20-all-14 | AC | 19 ms | 11092 KB |
20-all-15 | AC | 19 ms | 9044 KB |
20-all-16 | AC | 19 ms | 9044 KB |
20-all-17 | AC | 19 ms | 11092 KB |
20-all-18 | AC | 19 ms | 9044 KB |
20-all-19 | AC | 19 ms | 9044 KB |
20-all-20 | AC | 20 ms | 11092 KB |
20-all-21 | AC | 20 ms | 11092 KB |
20-all-22 | AC | 19 ms | 9044 KB |
20-all-23 | AC | 19 ms | 9044 KB |
20-all-24 | AC | 19 ms | 11092 KB |
20-all-25 | AC | 20 ms | 11092 KB |
20-all-26 | AC | 19 ms | 9044 KB |
20-all-27 | AC | 20 ms | 11092 KB |
20-all-28 | AC | 20 ms | 11092 KB |
20-all-29 | AC | 19 ms | 11092 KB |
30-hand-00 | AC | 19 ms | 9044 KB |
30-hand-01 | AC | 19 ms | 9044 KB |