結果

問題 No.1264 010
ユーザー xRS43BofaUEZ5gc
提出日時 2021-03-11 09:31:45
言語 Java
(openjdk 23)
結果
AC  
実行時間 168 ms / 1,000 ms
コード長 397 bytes
コンパイル時間 3,405 ms
コンパイル使用メモリ 74,944 KB
実行使用メモリ 44,456 KB
最終ジャッジ日時 2024-10-12 23:37:39
合計ジャッジ時間 6,185 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

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