結果

問題 No.83 最大マッチング
ユーザー shinwisteriashinwisteria
提出日時 2019-01-22 20:39:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 5,178 ms
コンパイル使用メモリ 72,448 KB
実行使用メモリ 58,084 KB
最終ジャッジ日時 2023-10-14 09:18:28
合計ジャッジ時間 7,991 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,640 KB
testcase_01 AC 120 ms
55,696 KB
testcase_02 AC 120 ms
55,908 KB
testcase_03 WA -
testcase_04 AC 122 ms
56,112 KB
testcase_05 WA -
testcase_06 AC 122 ms
56,188 KB
testcase_07 WA -
testcase_08 AC 121 ms
55,784 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 134 ms
56,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No83 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.close();

		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < N/2 - 1;i++){
			sb.append("1");
		}
		if(N % 2 == 1){
			sb.append("7");
		}else{
			sb.append("1");
		}
		System.out.println(sb);

	}

}
0