結果

問題 No.83 最大マッチング
ユーザー Vir_MeL0
提出日時 2017-03-22 23:13:11
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 447 bytes
コンパイル時間 1,949 ms
コンパイル使用メモリ 73,064 KB
実行使用メモリ 48,860 KB
最終ジャッジ日時 2024-07-05 17:48:58
合計ジャッジ時間 4,177 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		int N=Integer.parseInt(str);
		if(N%2==0){
			for(int i=0;i<N/2;i++)
				System.out.print("1");
			System.out.println();
		}else{
			System.out.print("7");
			for(int i=0;i<(N-1)/2;i++)
				System.out.print("1");
			System.out.println();
		}
	}
}
0