結果
問題 | No.1264 010 |
ユーザー |
![]() |
提出日時 | 2020-10-23 22:36:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 1,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 4,975 ms |
コンパイル使用メモリ | 108,104 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-07-21 11:26:24 |
合計ジャッジ時間 | 3,588 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { static void Main() { var n = int.Parse(Console.ReadLine().Trim()); getAns(n); } static void getAns (int n) { if (n == 0) { Console.WriteLine(1); return; } Console.WriteLine("010" + new string('0', n - 1)); } }