結果
問題 | No.292 芸名 |
ユーザー |
|
提出日時 | 2020-03-28 10:40:13 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 592 bytes |
コンパイル時間 | 1,173 ms |
コンパイル使用メモリ | 114,168 KB |
実行使用メモリ | 27,972 KB |
最終ジャッジ日時 | 2025-01-02 10:52:31 |
合計ジャッジ時間 | 2,185 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;using System.Collections.Generic;using System.Linq;public class P0292 {public static void Main() {var stu = Console.ReadLine().Trim().Split(' ').ToList();var s = stu[0];var t = int.Parse(stu[1]);var u = int.Parse(stu[2]);var unused = new List<int>(){ t, u };Console.WriteLine(String.Join("", Enumerable.Range(0, s.Length).Zip(s.ToCharArray(), (i, c) => new { left = i, right = c }).Where(pair => !unused.Contains(pair.left)).Select(pair => pair.right)));}}