結果

問題 No.83 最大マッチング
ユーザー papipenpapipen
提出日時 2017-04-11 20:28:59
言語 Java19
(openjdk 21)
結果
AC  
実行時間 444 ms / 5,000 ms
コード長 357 bytes
コンパイル時間 4,266 ms
コンパイル使用メモリ 71,380 KB
実行使用メモリ 66,316 KB
最終ジャッジ日時 2023-09-25 11:16:12
合計ジャッジ時間 5,468 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,672 KB
testcase_01 AC 127 ms
55,404 KB
testcase_02 AC 124 ms
55,332 KB
testcase_03 AC 125 ms
55,816 KB
testcase_04 AC 123 ms
55,684 KB
testcase_05 AC 129 ms
55,764 KB
testcase_06 AC 122 ms
55,404 KB
testcase_07 AC 123 ms
55,608 KB
testcase_08 AC 122 ms
55,540 KB
testcase_09 AC 234 ms
60,124 KB
testcase_10 AC 381 ms
65,336 KB
testcase_11 AC 444 ms
65,784 KB
testcase_12 AC 430 ms
66,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class N083{
	public static void main(String args[]){
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if(n % 2 == 0){
			for(int i = 0; i < n / 2; i++){
				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