結果

問題 No.83 最大マッチング
ユーザー k_kadorak_kadora
提出日時 2015-05-23 23:51:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 338 ms / 5,000 ms
コード長 347 bytes
コンパイル時間 3,195 ms
コンパイル使用メモリ 73,520 KB
実行使用メモリ 58,736 KB
最終ジャッジ日時 2023-09-20 10:55:56
合計ジャッジ時間 6,193 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,744 KB
testcase_01 AC 118 ms
55,664 KB
testcase_02 AC 121 ms
56,220 KB
testcase_03 AC 123 ms
56,256 KB
testcase_04 AC 120 ms
55,836 KB
testcase_05 AC 123 ms
56,244 KB
testcase_06 AC 123 ms
56,292 KB
testcase_07 AC 121 ms
55,656 KB
testcase_08 AC 122 ms
56,004 KB
testcase_09 AC 148 ms
58,624 KB
testcase_10 AC 240 ms
58,736 KB
testcase_11 AC 335 ms
56,700 KB
testcase_12 AC 338 ms
58,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Matching{
	public static void main(String[] arg){
		Scanner sc = new Scanner(System.in);
		int n,m;
		String out="";
		n = sc.nextInt();
		if(n%2 == 0){
			out = out + "1";
			n = n -2;
		}else{
			out = out + "7";
			n = n -3;
		}
		while(n>0){
			out = out + "1";
			n = n -2;
		}
		System.out.println(out);
	}
}
0