結果

問題 No.2599 Summer Project
ユーザー heno239heno239
提出日時 2024-02-05 17:20:30
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 743 bytes
コンパイル時間 7,046 ms
コンパイル使用メモリ 158,612 KB
実行使用メモリ 177,948 KB
最終ジャッジ日時 2024-02-05 17:20:39
合計ジャッジ時間 8,219 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
30,372 KB
testcase_01 AC 69 ms
30,372 KB
testcase_02 AC 77 ms
30,372 KB
testcase_03 AC 70 ms
30,372 KB
testcase_04 AC 69 ms
30,372 KB
testcase_05 AC 69 ms
177,948 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (96 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

using System.Collections;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

internal class Program
{
    private const long mod = 998244353;

    
    public static void Main(string[] args)
    {
        List<string> ss = new List<string>(){"watermelon", "beachball", "shrinebell"};
        var s = Console.ReadLine();
        var t = Console.ReadLine();
        for (int i = 0; i < ss.Count(); i++)
        {
            var x = ss[i];
            if (s != x && t != x) Console.WriteLine(x);
        }
        
    }

    public static List<int> mkar(int n, int val)
    {
        List<int> res = new List<int>(n);
        for(int i=0;i<n;i++)res.Add(val);
        return res;
    }
}
0