結果

問題 No.83 最大マッチング
ユーザー AOSM_saltoneAOSM_saltone
提出日時 2017-05-21 11:36:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 429 ms / 5,000 ms
コード長 425 bytes
コンパイル時間 3,047 ms
コンパイル使用メモリ 74,056 KB
実行使用メモリ 67,512 KB
最終ジャッジ日時 2023-10-19 12:01:14
合計ジャッジ時間 6,589 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
57,536 KB
testcase_01 AC 135 ms
57,760 KB
testcase_02 AC 135 ms
57,804 KB
testcase_03 AC 134 ms
57,244 KB
testcase_04 AC 139 ms
57,540 KB
testcase_05 AC 135 ms
55,644 KB
testcase_06 AC 135 ms
57,588 KB
testcase_07 AC 134 ms
57,492 KB
testcase_08 AC 137 ms
57,556 KB
testcase_09 AC 238 ms
60,856 KB
testcase_10 AC 380 ms
66,872 KB
testcase_11 AC 429 ms
67,512 KB
testcase_12 AC 423 ms
67,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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