結果

問題 No.83 最大マッチング
コンテスト
ユーザー willowoooo
提出日時 2016-06-05 03:32:55
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
AC  
実行時間 181 ms / 5,000 ms
コード長 537 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,980 ms
コンパイル使用メモリ 82,696 KB
実行使用メモリ 49,404 KB
最終ジャッジ日時 2026-04-24 23:45:26
合計ジャッジ時間 4,068 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

/* 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