結果

問題 No.1943 消えたAGCT(1)
ユーザー mobchanmobchan
提出日時 2023-05-07 14:34:31
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 12,995 ms
コンパイル使用メモリ 147,596 KB
実行使用メモリ 167,920 KB
最終ジャッジ日時 2023-08-16 04:39:50
合計ジャッジ時間 16,797 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
28,520 KB
testcase_01 AC 48 ms
30,472 KB
testcase_02 AC 48 ms
28,460 KB
testcase_03 AC 48 ms
28,716 KB
testcase_04 AC 48 ms
28,480 KB
testcase_05 AC 48 ms
28,692 KB
testcase_06 AC 48 ms
28,580 KB
testcase_07 AC 49 ms
28,584 KB
testcase_08 AC 49 ms
30,724 KB
testcase_09 AC 58 ms
32,464 KB
testcase_10 AC 59 ms
34,660 KB
testcase_11 AC 59 ms
32,768 KB
testcase_12 AC 57 ms
32,744 KB
testcase_13 AC 54 ms
31,428 KB
testcase_14 AC 49 ms
28,824 KB
testcase_15 AC 57 ms
32,204 KB
testcase_16 AC 56 ms
31,772 KB
testcase_17 AC 56 ms
33,908 KB
testcase_18 AC 57 ms
32,616 KB
testcase_19 AC 61 ms
32,604 KB
testcase_20 AC 58 ms
32,572 KB
testcase_21 AC 57 ms
32,492 KB
testcase_22 AC 59 ms
32,772 KB
testcase_23 AC 57 ms
32,612 KB
testcase_24 AC 60 ms
32,452 KB
testcase_25 AC 60 ms
32,740 KB
testcase_26 AC 60 ms
167,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 131 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var n = int.Parse(Console.ReadLine());
        var s = Console.ReadLine().ToList();

        var index = s.FindLastIndex(x => x == 'A' || x == 'C' || x == 'G' || x == 'T');

        Console.WriteLine(index+1);
    }
}
0