結果

問題 No.1264 010
ユーザー xRS43BofaUEZ5gcxRS43BofaUEZ5gc
提出日時 2021-03-11 09:31:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 168 ms / 1,000 ms
コード長 397 bytes
コンパイル時間 3,482 ms
コンパイル使用メモリ 74,808 KB
実行使用メモリ 41,968 KB
最終ジャッジ日時 2024-04-21 01:17:45
合計ジャッジ時間 6,153 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
40,308 KB
testcase_01 AC 125 ms
41,032 KB
testcase_02 AC 110 ms
40,292 KB
testcase_03 AC 127 ms
40,952 KB
testcase_04 AC 129 ms
40,016 KB
testcase_05 AC 147 ms
40,016 KB
testcase_06 AC 123 ms
41,240 KB
testcase_07 AC 123 ms
41,420 KB
testcase_08 AC 123 ms
41,312 KB
testcase_09 AC 168 ms
41,936 KB
testcase_10 AC 168 ms
41,668 KB
testcase_11 AC 160 ms
41,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class HelloWorld {

	    public static void main(String[] args) throws Exception {

	    	Scanner sc = new Scanner(System.in);
	    	int n = sc.nextInt();
	    	sc.close();
	    	
	    	if (n ==0) {System.out.print("1");
	    	}else {
	    	
	    	System.out.print("01");
	    	for (int i = 0; i < n; i++) {
	    		System.out.print("0");
	    	}}

	    	}

	    }
0