結果

問題 No.83 最大マッチング
ユーザー mits58mits58
提出日時 2016-07-02 14:52:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 1,762 ms
コンパイル使用メモリ 74,304 KB
実行使用メモリ 64,364 KB
最終ジャッジ日時 2024-04-20 05:45:14
合計ジャッジ時間 4,654 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
54,100 KB
testcase_01 AC 101 ms
53,016 KB
testcase_02 AC 104 ms
53,204 KB
testcase_03 WA -
testcase_04 AC 109 ms
54,040 KB
testcase_05 WA -
testcase_06 AC 105 ms
52,952 KB
testcase_07 WA -
testcase_08 AC 97 ms
52,848 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 378 ms
64,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			int n=sc.nextInt();
			if(n==2) System.out.println(1);
			else if(n==3) System.out.println(7);
			else{
				for(int i=0;i<n/2;i++) System.out.print(1);
				System.out.println();
			}
		}
	}
}
0