結果
| 問題 |
No.2614 Delete ABC
|
| コンテスト | |
| ユーザー |
heno239
|
| 提出日時 | 2024-02-02 17:59:42 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| コード長 | 700 bytes |
| コンパイル時間 | 9,042 ms |
| コンパイル使用メモリ | 169,172 KB |
| 実行使用メモリ | 188,876 KB |
| 最終ジャッジ日時 | 2024-09-28 10:38:25 |
| 合計ジャッジ時間 | 7,694 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 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/
ソースコード
// See https://aka.ms/new-console-template for more information
using System.Collections;
using System.Runtime.InteropServices;
internal class Program
{
public static void Main(string[] args)
{
int T = int.Parse(Console.ReadLine());
for (int t = 0; t < T; t++)
{
int n = int.Parse(Console.ReadLine());
string ans = "ABACBC";
for (int i = 2; i < n; i++)
{
ans += "ABC";
}
Console.WriteLine(ans);
}
}
public static List<int> mkar(int n, int val)
{
List<int> res = new List<int>(n);
for(int i=0;i<n;i++)res.Add(val);
return res;
}
}
heno239