結果

問題 No.83 最大マッチング
ユーザー nCk_cvnCk_cv
提出日時 2016-01-27 17:57:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 337 ms / 5,000 ms
コード長 337 bytes
コンパイル時間 2,290 ms
コンパイル使用メモリ 85,500 KB
実行使用メモリ 60,040 KB
最終ジャッジ日時 2023-10-21 16:25:10
合計ジャッジ時間 5,430 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,464 KB
testcase_01 AC 130 ms
57,264 KB
testcase_02 AC 134 ms
56,948 KB
testcase_03 AC 134 ms
57,452 KB
testcase_04 AC 134 ms
57,244 KB
testcase_05 AC 134 ms
57,224 KB
testcase_06 AC 134 ms
57,468 KB
testcase_07 AC 135 ms
57,500 KB
testcase_08 AC 134 ms
55,420 KB
testcase_09 AC 159 ms
59,956 KB
testcase_10 AC 244 ms
59,548 KB
testcase_11 AC 331 ms
60,040 KB
testcase_12 AC 337 ms
59,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
import java.io.*;

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