結果

問題 No.83 最大マッチング
ユーザー kano_townkano_town
提出日時 2014-12-05 21:04:54
言語 Java19
(openjdk 21)
結果
AC  
実行時間 391 ms / 5,000 ms
コード長 341 bytes
コンパイル時間 5,055 ms
コンパイル使用メモリ 71,388 KB
実行使用メモリ 65,324 KB
最終ジャッジ日時 2023-09-02 08:56:29
合計ジャッジ時間 6,631 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
54,000 KB
testcase_01 AC 120 ms
55,504 KB
testcase_02 AC 122 ms
55,788 KB
testcase_03 AC 119 ms
55,684 KB
testcase_04 AC 120 ms
55,792 KB
testcase_05 AC 119 ms
53,612 KB
testcase_06 AC 123 ms
56,236 KB
testcase_07 AC 122 ms
56,096 KB
testcase_08 AC 121 ms
55,788 KB
testcase_09 AC 225 ms
60,476 KB
testcase_10 AC 351 ms
65,324 KB
testcase_11 AC 391 ms
64,996 KB
testcase_12 AC 388 ms
64,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder83 {

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