結果

問題 No.83 最大マッチング
ユーザー ieneko18ieneko18
提出日時 2016-11-15 22:26:04
言語 Java19
(openjdk 21)
結果
AC  
実行時間 393 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 3,873 ms
コンパイル使用メモリ 71,824 KB
実行使用メモリ 65,332 KB
最終ジャッジ日時 2023-08-17 07:07:46
合計ジャッジ時間 6,015 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
55,748 KB
testcase_01 AC 124 ms
55,476 KB
testcase_02 AC 123 ms
55,780 KB
testcase_03 AC 123 ms
55,644 KB
testcase_04 AC 125 ms
55,772 KB
testcase_05 AC 125 ms
55,704 KB
testcase_06 AC 126 ms
55,732 KB
testcase_07 AC 126 ms
55,780 KB
testcase_08 AC 124 ms
55,816 KB
testcase_09 AC 226 ms
60,068 KB
testcase_10 AC 348 ms
64,884 KB
testcase_11 AC 391 ms
64,728 KB
testcase_12 AC 393 ms
65,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

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