結果

問題 No.83 最大マッチング
ユーザー reon777reon777
提出日時 2017-06-21 22:40:50
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 3,384 ms
コンパイル使用メモリ 74,544 KB
実行使用メモリ 63,636 KB
最終ジャッジ日時 2024-04-10 10:02:52
合計ジャッジ時間 6,564 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
53,872 KB
testcase_01 AC 119 ms
54,156 KB
testcase_02 AC 118 ms
53,864 KB
testcase_03 WA -
testcase_04 AC 119 ms
53,816 KB
testcase_05 WA -
testcase_06 AC 106 ms
52,924 KB
testcase_07 WA -
testcase_08 AC 117 ms
54,080 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 398 ms
63,636 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>3;){
      keta++;
      i = i-2;
      System.out.print("1");
    }

    if(i == 3){
      System.out.print("7");
    }
    else{
      System.out.print("1");
    }

  }
}
0