結果

問題 No.83 最大マッチング
ユーザー キョウチクキョウチク
提出日時 2020-07-17 14:08:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 264 ms / 5,000 ms
コード長 429 bytes
コンパイル時間 5,515 ms
コンパイル使用メモリ 76,456 KB
実行使用メモリ 54,716 KB
最終ジャッジ日時 2023-08-18 22:55:47
合計ジャッジ時間 6,561 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,580 KB
testcase_01 AC 36 ms
49,416 KB
testcase_02 AC 43 ms
49,632 KB
testcase_03 AC 45 ms
49,724 KB
testcase_04 AC 44 ms
49,688 KB
testcase_05 AC 44 ms
49,812 KB
testcase_06 AC 45 ms
49,852 KB
testcase_07 AC 45 ms
49,832 KB
testcase_08 AC 45 ms
49,768 KB
testcase_09 AC 62 ms
52,684 KB
testcase_10 AC 167 ms
54,652 KB
testcase_11 AC 264 ms
54,716 KB
testcase_12 AC 256 ms
54,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package workspace.gomi;
import java.io.*;
public class temp{
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(br.readLine());
        String s="";
        if(n%2==1){
            n-=3;
            s="7";
        }
        n/=2;
        for(int i=0;i<n;i++) s=s+"1";
        System.out.println(s);
    }
}
0