結果
| 問題 |
No.494 yukicoder
|
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2017-06-25 13:37:44 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 1,941 bytes |
| コンパイル時間 | 993 ms |
| コンパイル使用メモリ | 110,208 KB |
| 実行使用メモリ | 20,480 KB |
| 最終ジャッジ日時 | 2024-10-04 08:33:12 |
| 合計ジャッジ時間 | 1,914 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
#pragma warning disable IDE0011
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using static System.Math;
using static Extentions;
class IO
{
int idx;
string[] line;
public void R(params char[] sep) { line = Console.ReadLine().Split(sep); idx = 0; }
public string S => line[idx++];
public string[] Ss => line.Skip(idx++).ToArray();
public char C => char.Parse(line[idx++]);
public char[] Cs => line.Skip(idx++).Select(char.Parse).ToArray();
public int I => int.Parse(line[idx++]);
public int[] Is => line.Skip(idx++).Select(int.Parse).ToArray();
public long L => long.Parse(line[idx++]);
public long[] Ls => line.Skip(idx++).Select(long.Parse).ToArray();
public double F => double.Parse(line[idx++]);
public double[] Fs => line.Skip(idx++).Select(double.Parse).ToArray();
public decimal D => decimal.Parse(line[idx++]);
public decimal[] Ds => line.Skip(idx++).Select(decimal.Parse).ToArray();
public BigInteger B => BigInteger.Parse(line[idx++]);
public BigInteger[] Bs => line.Skip(idx++).Select(BigInteger.Parse).ToArray();
public void Write(params object[] xs)
{
Console.Write(xs.First());
foreach (var x in xs.Skip(1)) Console.Write(" " + x);
Console.WriteLine();
}
}
static class Extentions
{
public static void ForEach<T>(this IEnumerable<T> seq, Action<T> act)
{
foreach (var item in seq) act(item);
}
}
static class Program
{
static void Main()
{
Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
Solve(new IO());
Console.Out.Flush();
}
static void Solve(IO io)
{
io.R();
var s = io.S;
var set = new SortedSet<char>();
s.ForEach(c => set.Add(c));
set.SymmetricExceptWith("yukicoder");
io.Write(set.Last());
}
}
くれちー