結果
問題 | No.3019 YNeos |
ユーザー |
|
提出日時 | 2025-02-22 20:35:50 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 51 ms / 1,000 ms |
コード長 | 1,121 bytes |
コンパイル時間 | 14,244 ms |
コンパイル使用メモリ | 170,804 KB |
実行使用メモリ | 184,348 KB |
最終ジャッジ日時 | 2025-02-22 20:36:11 |
合計ジャッジ時間 | 18,399 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 41 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (167 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var x = ReadLine(); var y = ReadLine(); var c = new char[x.Length + y.Length]; if (x.Length == y.Length) { for (var i = 0; i < x.Length; ++i) { c[i * 2] = x[i]; c[i * 2 + 1] = y[i]; } } else if (x.Length == y.Length + 1) { for (var i = 0; i < y.Length; ++i) { c[i * 2] = x[i]; c[i * 2 + 1] = y[i]; } c[^1] = x[^1]; } else { WriteLine("?"); return; } WriteLine(string.Concat(c)); } }