結果

問題 No.83 最大マッチング
ユーザー ieneko18
提出日時 2016-11-15 22:33:14
言語 Java
(openjdk 23)
結果
AC  
実行時間 305 ms / 5,000 ms
コード長 272 bytes
コンパイル時間 1,996 ms
コンパイル使用メモリ 75,948 KB
実行使用メモリ 45,748 KB
最終ジャッジ日時 2024-11-26 01:55:27
合計ジャッジ時間 4,746 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		String s="";
		if(n%2==0)s+="1";
		else s+="7";
		for(int i=0;i<n/2-1;i++){
			s+="1";
		}
		System.out.println(s);
	}
}
0