結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:48:58 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 1,289 bytes |
| コンパイル時間 | 10,531 ms |
| コンパイル使用メモリ | 166,052 KB |
| 実行使用メモリ | 183,792 KB |
| 最終ジャッジ日時 | 2024-09-30 00:49:21 |
| 合計ジャッジ時間 | 12,121 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (95 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
string N = Console.ReadLine();
int n = int.Parse(N);
List<string> data = new List<string>();
for(int a=1;a<=2;a++){
string S1 = "N";
if(a == 2){
S1 += S1;
}
for(int b=1;b<=2;b++){
string S2 = S1 + "U";
if(b == 2){
S2 += S2;
}
for(int c=1;c<=2;c++){
string S3 = S2 + "P";
if(c == 2){
S3 += S3;
}
for(int d=1;d<=2;d++){
string S4 = S3 + "C";
if(d == 2){
S4 += S4;
}
// 現在の文字列を追加する
data.Add(S4);
}
}
}
}
// ソート
data.Sort();
Console.WriteLine(data[n-1]);
}
}