結果
問題 | No.2535 多重同値 |
ユーザー | volhalink |
提出日時 | 2023-11-10 23:11:23 |
言語 | C# (.NET 8.0.203) |
結果 |
TLE
|
実行時間 | - |
コード長 | 768 bytes |
コンパイル時間 | 7,084 ms |
コンパイル使用メモリ | 157,968 KB |
実行使用メモリ | 41,656 KB |
最終ジャッジ日時 | 2023-11-10 23:11:38 |
合計ジャッジ時間 | 12,091 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
34,468 KB |
testcase_01 | AC | 57 ms
37,816 KB |
testcase_02 | AC | 57 ms
31,012 KB |
testcase_03 | AC | 57 ms
31,012 KB |
testcase_04 | AC | 57 ms
31,012 KB |
testcase_05 | AC | 57 ms
31,012 KB |
testcase_06 | AC | 57 ms
31,012 KB |
testcase_07 | AC | 57 ms
31,012 KB |
testcase_08 | AC | 57 ms
31,012 KB |
testcase_09 | AC | 57 ms
31,012 KB |
testcase_10 | AC | 57 ms
31,012 KB |
testcase_11 | AC | 57 ms
31,012 KB |
testcase_12 | AC | 57 ms
31,012 KB |
testcase_13 | AC | 58 ms
31,012 KB |
testcase_14 | AC | 58 ms
31,012 KB |
testcase_15 | AC | 60 ms
31,268 KB |
testcase_16 | AC | 120 ms
31,652 KB |
testcase_17 | TLE | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (101 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/
ソースコード
using System; class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var p = new bool[n]; var r = new bool[n]; var input = Console.ReadLine(); if (input == "Yes") p[0] = true; else p[0] = false; for (int i = 1; i < n; i++) { input = Console.ReadLine(); if (input == "Yes") p[i] = true; else p[i] = false; } for(int i = n - 1; i >= 0; i--) { r[i] = p[i]; for(int j = i + 1; j < n; j++) { r[j] = r[j] == p[i]; } } for (int i = 0; i < n; i++) { Console.WriteLine(r[i] ? "Yes" : "No"); } } }