結果

問題 No.83 最大マッチング
ユーザー fal_rndfal_rnd
提出日時 2017-09-29 23:56:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 399 ms / 5,000 ms
コード長 621 bytes
コンパイル時間 2,069 ms
コンパイル使用メモリ 79,144 KB
実行使用メモリ 64,124 KB
最終ジャッジ日時 2024-04-27 16:24:22
合計ジャッジ時間 5,085 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
53,812 KB
testcase_01 AC 112 ms
54,000 KB
testcase_02 AC 115 ms
53,936 KB
testcase_03 AC 116 ms
53,648 KB
testcase_04 AC 117 ms
53,724 KB
testcase_05 AC 114 ms
54,040 KB
testcase_06 AC 116 ms
54,012 KB
testcase_07 AC 99 ms
52,800 KB
testcase_08 AC 102 ms
52,592 KB
testcase_09 AC 214 ms
56,496 KB
testcase_10 AC 348 ms
63,776 KB
testcase_11 AC 399 ms
64,120 KB
testcase_12 AC 393 ms
64,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n){return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}
	static long getLong(){return Long.parseLong(s.next());}

	public static void main(String[]$){
		int n=getInt();
		if(n%2==1) {
			System.out.print(7);
			n-=3;
		}
		while(n>=2) {
			System.out.print(1);
			n-=2;
		}
		System.out.println();
	}
}
0