結果

問題 No.83 最大マッチング
ユーザー Vir_MeL0Vir_MeL0
提出日時 2017-03-22 23:13:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 447 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 72,232 KB
実行使用メモリ 62,704 KB
最終ジャッジ日時 2023-09-19 05:26:52
合計ジャッジ時間 4,553 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,300 KB
testcase_01 WA -
testcase_02 AC 44 ms
49,620 KB
testcase_03 WA -
testcase_04 AC 45 ms
49,192 KB
testcase_05 WA -
testcase_06 AC 45 ms
49,252 KB
testcase_07 WA -
testcase_08 AC 46 ms
49,356 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 330 ms
59,344 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-1)/2;i++)
				System.out.print("1");
			System.out.println();
		}
	}
}
0