結果

問題 No.83 最大マッチング
ユーザー Vir_MeL0Vir_MeL0
提出日時 2017-03-22 23:14:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 336 ms / 5,000 ms
コード長 447 bytes
コンパイル時間 4,745 ms
コンパイル使用メモリ 71,052 KB
実行使用メモリ 61,536 KB
最終ジャッジ日時 2023-09-19 05:27:14
合計ジャッジ時間 4,341 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,352 KB
testcase_01 AC 44 ms
49,260 KB
testcase_02 AC 43 ms
49,184 KB
testcase_03 AC 43 ms
49,128 KB
testcase_04 AC 44 ms
49,264 KB
testcase_05 AC 44 ms
49,272 KB
testcase_06 AC 44 ms
49,192 KB
testcase_07 AC 44 ms
49,056 KB
testcase_08 AC 44 ms
49,196 KB
testcase_09 AC 116 ms
52,052 KB
testcase_10 AC 290 ms
59,224 KB
testcase_11 AC 336 ms
61,536 KB
testcase_12 AC 283 ms
61,160 KB
権限があれば一括ダウンロードができます

ソースコード

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-3)/2;i++)
				System.out.print("1");
			System.out.println();
		}
	}
}
0