結果
| 問題 | 
                            No.1468 Colourful Pastel
                             | 
                    
| ユーザー | 
                             Maeda
                         | 
                    
| 提出日時 | 2025-04-04 17:03:31 | 
| 言語 | C#  (.NET 8.0.404)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 89 ms / 1,000 ms | 
| コード長 | 614 bytes | 
| コンパイル時間 | 16,200 ms | 
| コンパイル使用メモリ | 169,004 KB | 
| 実行使用メモリ | 204,076 KB | 
| 最終ジャッジ日時 | 2025-04-04 17:03:51 | 
| 合計ジャッジ時間 | 12,288 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 25 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (106 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            string[] setA = Console.ReadLine().Split(' ');
            string[] setB = Console.ReadLine().Split(' ');
            int lose = -1;
            for(int i = 0; i < n-1; i++)
            {
                if(setA[i] != setB[i])
                {
                    lose = i;
                    break;
                }
            }
            if(lose == -1)
            {
                lose = n - 1;
            }
            Console.WriteLine(setA[lose]);
        }
    }
            
            
            
        
            
Maeda