結果

問題 No.83 最大マッチング
ユーザー Mcpu3Mcpu3
提出日時 2018-08-27 18:25:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 445 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 3,584 ms
コンパイル使用メモリ 71,120 KB
実行使用メモリ 66,676 KB
最終ジャッジ日時 2023-09-18 01:25:34
合計ジャッジ時間 5,964 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,848 KB
testcase_01 AC 122 ms
55,912 KB
testcase_02 AC 123 ms
56,108 KB
testcase_03 AC 121 ms
56,032 KB
testcase_04 AC 122 ms
55,872 KB
testcase_05 AC 122 ms
55,648 KB
testcase_06 AC 124 ms
55,736 KB
testcase_07 AC 123 ms
56,168 KB
testcase_08 AC 127 ms
55,800 KB
testcase_09 AC 231 ms
59,756 KB
testcase_10 AC 372 ms
64,932 KB
testcase_11 AC 445 ms
66,584 KB
testcase_12 AC 444 ms
66,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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