結果

問題 No.83 最大マッチング
ユーザー reon777reon777
提出日時 2017-06-21 22:46:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 3,320 ms
コンパイル使用メモリ 75,104 KB
実行使用メモリ 64,440 KB
最終ジャッジ日時 2024-04-10 10:02:59
合計ジャッジ時間 6,770 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
53,976 KB
testcase_01 AC 133 ms
54,176 KB
testcase_02 AC 132 ms
54,328 KB
testcase_03 AC 131 ms
54,124 KB
testcase_04 AC 132 ms
54,176 KB
testcase_05 WA -
testcase_06 AC 131 ms
54,028 KB
testcase_07 WA -
testcase_08 AC 130 ms
54,224 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 420 ms
63,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class HelloWorld
{
  public static void main( String[] args )
  {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int keta = 0;
    int i;

    for(i= N; i>5;){
      keta++;
      i = i-2;
      System.out.print("1");
    }

    if(i == 5){
      System.out.print("71");
    }
    else if(i==4){
      System.out.print("11");
    }
    else if(i==3){
      System.out.print("7");
    }
    else if(i==2){
      System.out.print("1");
    }

  }
}

0