結果

問題 No.83 最大マッチング
ユーザー 37zigen37zigen
提出日時 2016-03-12 18:11:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 341 ms / 5,000 ms
コード長 448 bytes
コンパイル時間 3,336 ms
コンパイル使用メモリ 76,712 KB
実行使用メモリ 60,160 KB
最終ジャッジ日時 2023-10-25 08:08:09
合計ジャッジ時間 6,518 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
57,236 KB
testcase_01 AC 138 ms
57,644 KB
testcase_02 AC 127 ms
55,980 KB
testcase_03 AC 142 ms
57,652 KB
testcase_04 AC 146 ms
57,680 KB
testcase_05 AC 144 ms
57,284 KB
testcase_06 AC 132 ms
56,340 KB
testcase_07 AC 142 ms
57,656 KB
testcase_08 AC 142 ms
57,552 KB
testcase_09 AC 169 ms
60,160 KB
testcase_10 AC 246 ms
59,544 KB
testcase_11 AC 341 ms
60,052 KB
testcase_12 AC 336 ms
60,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package 練習;
import java.util.Date;
import java.util.Scanner;

public class main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		long exec_time=new Date().getTime();
		int n=sc.nextInt();
		String str="";
		
		for(int i=0;i<n/2-1;i++){
			str+="1";
		}
		if(n%2==0){
			str+="1";
		}else if(n%2==1){
			str="7"+str;
		}
		System.out.println(str);
		System.err.println(new Date().getTime()-exec_time+"ms");
	}
}

0