結果

問題 No.83 最大マッチング
ユーザー willowoooowillowoooo
提出日時 2016-06-05 03:32:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 343 ms / 5,000 ms
コード長 537 bytes
コンパイル時間 3,828 ms
コンパイル使用メモリ 76,252 KB
実行使用メモリ 45,732 KB
最終ジャッジ日時 2024-04-17 03:55:12
合計ジャッジ時間 6,203 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
41,364 KB
testcase_01 AC 135 ms
41,156 KB
testcase_02 AC 135 ms
41,268 KB
testcase_03 AC 133 ms
41,280 KB
testcase_04 AC 135 ms
41,148 KB
testcase_05 AC 135 ms
41,472 KB
testcase_06 AC 133 ms
41,136 KB
testcase_07 AC 132 ms
41,464 KB
testcase_08 AC 129 ms
41,380 KB
testcase_09 AC 160 ms
45,624 KB
testcase_10 AC 249 ms
45,732 KB
testcase_11 AC 339 ms
45,540 KB
testcase_12 AC 343 ms
45,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		 long n = sc.nextInt();
	String ans ="";
		if(n % 2 == 1){
			ans += "7";
			n--;
		}
		else{
			ans += "1";
		}
		n = n-2;
		while(n > 0){
			ans +="1" ;
			n = n-2;
		}
		System.out.println(ans);
	}
}
0