結果

問題 No.83 最大マッチング
ユーザー ki_ki33ki_ki33
提出日時 2014-12-12 23:11:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 353 ms / 5,000 ms
コード長 1,131 bytes
コンパイル時間 2,273 ms
コンパイル使用メモリ 76,484 KB
実行使用メモリ 58,640 KB
最終ジャッジ日時 2023-09-02 14:24:25
合計ジャッジ時間 5,351 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
56,168 KB
testcase_01 AC 128 ms
55,772 KB
testcase_02 AC 129 ms
55,672 KB
testcase_03 AC 128 ms
55,912 KB
testcase_04 AC 126 ms
56,072 KB
testcase_05 AC 130 ms
55,800 KB
testcase_06 AC 129 ms
55,964 KB
testcase_07 AC 129 ms
55,836 KB
testcase_08 AC 129 ms
56,156 KB
testcase_09 AC 156 ms
58,548 KB
testcase_10 AC 251 ms
56,632 KB
testcase_11 AC 353 ms
58,640 KB
testcase_12 AC 348 ms
58,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedInputStream;
import java.io.IOException;
import java.lang.reflect.Array;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;

public class Main {
	public static final int C =  1000000007;
	//static int map[][];
	//static int N;
	//static int M;
	//static int tic[][];
	//static int dp[][];
	//static int max;
	//static int set[];
	//static int p[];
	//static ArrayList<HashSet<Integer>> al;
	//static int a[][];
	//static ArrayList<HashMap<Long, Long>> al;
	//static String a[];
	//static String str;
	static int[] mach = new int[] {6, 2, 5, 5, 4, 5, 6, 3, 7, 6};
	
	public static void main(String[] args) {
		//StringBuilder sb = new StringBuilder();
		BufferedInputStream bs = new BufferedInputStream(System.in);
		Scanner sc = new Scanner(bs);
		//String str = sc.next();
		int n = sc.nextInt();
		
		String ans = "";
		while (n > 1) {
			if (n == 3) {
				ans = 7 + ans;
				n -= 3;
			} else {
				ans = 1 + ans;
				n -= 2;
			}
			
		}
		
		
		
		
		
		System.out.println(ans);
		
	}
	
	
	
}
0