結果
| 問題 | 
                            No.197 手品
                             | 
                    
| コンテスト | |
| ユーザー | 
                             No
                         | 
                    
| 提出日時 | 2015-06-07 19:26:27 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,779 bytes | 
| コンパイル時間 | 2,026 ms | 
| コンパイル使用メモリ | 105,856 KB | 
| 実行使用メモリ | 17,792 KB | 
| 最終ジャッジ日時 | 2024-06-27 09:47:51 | 
| 合計ジャッジ時間 | 3,473 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 31 WA * 12 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace foryuki
{
    class Program
    {
        static void Main(string[] args)
        {
            char[] c1 = Console.ReadLine().ToCharArray();
            int N = int.Parse(Console.ReadLine());
            char[] c2 = Console.ReadLine().ToCharArray();
            int cnt = 0;
            foreach (var item in c1)
            {
                if (item == 'o') cnt++;
            }
            foreach (var item in c2)
            {
                if (item == 'o') cnt--;
            }
            if (cnt != 0)
            {
                Console.WriteLine("SUCCESS");
                return;
            }
            if (N >= 2)
            {
                Console.WriteLine("FAILURE");
                return;
            }
            string w1 = "";
            string w2 = "";
            w1 = "" + c1[1] + c1[0] + c1[2];
            w2 = "" + c1[0] + c1[2] + c1[1];
            if (c2.ToString() == w1 || c2.ToString() == w2)
            {
                Console.WriteLine("FAILURE");
                return;
            }
            else
            {
                Console.WriteLine("SUCCESS");
                return;
            }
        }
        //-------------------------------------------------------------
        static int[] ConvertStringArrayToIntArray(string[] str, int defaultValue)
        {
            int[] b = Array.ConvertAll<string, int>(str, delegate(string value)
                {
                    return int.Parse(value);
                });
            for (int i = 0; i < b.Length; i++)
            {
                b[i] = defaultValue;
            }
            return b;
        }
    }
}
            
            
            
        
            
No