結果

問題 No.83 最大マッチング
ユーザー r.suzukir.suzuki
提出日時 2016-01-14 16:49:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 3,886 ms
コンパイル使用メモリ 74,964 KB
実行使用メモリ 57,768 KB
最終ジャッジ日時 2023-10-19 23:04:09
合計ジャッジ時間 5,948 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,488 KB
testcase_01 AC 131 ms
57,572 KB
testcase_02 AC 133 ms
57,392 KB
testcase_03 WA -
testcase_04 AC 133 ms
57,452 KB
testcase_05 WA -
testcase_06 AC 130 ms
57,452 KB
testcase_07 WA -
testcase_08 AC 133 ms
57,408 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 151 ms
57,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

public class No_83{
	public static void main(String[] args){
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int match = sc.nextInt();
		StringBuilder sb = new StringBuilder("");
		
		for(int i = 0;i < match/2;i++){
			sb.append('1');
		}
		
		if(match%2 != 0){
			sb.setCharAt(sb.length()-1,'7');
		}
		
		System.out.println(sb);
		
	}
}
0