結果
問題 | No.2614 Delete ABC |
ユーザー | heno239 |
提出日時 | 2024-02-02 17:59:42 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 700 bytes |
コンパイル時間 | 6,614 ms |
コンパイル使用メモリ | 157,620 KB |
実行使用メモリ | 181,436 KB |
最終ジャッジ日時 | 2024-02-02 17:59:49 |
合計ジャッジ時間 | 7,398 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 54 ms
31,012 KB |
testcase_01 | AC | 55 ms
32,164 KB |
testcase_02 | AC | 59 ms
181,436 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (94 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.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; } }