結果

問題 No.773 コンテスト
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-06 09:37:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 1,904 ms
コンパイル使用メモリ 71,508 KB
実行使用メモリ 56,280 KB
最終ジャッジ日時 2023-08-24 19:46:13
合計ジャッジ時間 5,768 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,568 KB
testcase_01 AC 115 ms
56,048 KB
testcase_02 AC 116 ms
55,612 KB
testcase_03 AC 115 ms
55,832 KB
testcase_04 AC 116 ms
56,160 KB
testcase_05 AC 118 ms
56,160 KB
testcase_06 AC 116 ms
55,740 KB
testcase_07 AC 114 ms
55,368 KB
testcase_08 AC 115 ms
56,280 KB
testcase_09 AC 114 ms
55,348 KB
testcase_10 AC 118 ms
55,608 KB
testcase_11 AC 115 ms
55,572 KB
testcase_12 AC 117 ms
55,728 KB
testcase_13 AC 116 ms
56,000 KB
testcase_14 AC 114 ms
55,744 KB
testcase_15 AC 114 ms
55,616 KB
testcase_16 AC 115 ms
55,384 KB
testcase_17 AC 117 ms
55,672 KB
testcase_18 AC 117 ms
55,632 KB
testcase_19 AC 116 ms
55,532 KB
testcase_20 AC 117 ms
55,864 KB
testcase_21 AC 115 ms
54,064 KB
testcase_22 AC 117 ms
55,640 KB
testcase_23 AC 119 ms
55,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int[] day = new int[31];
    for(int i = a - 1; i < b; i++) {
      day[i] = 1;
    }
    int ans = 3 - (day[22] + day[23] + day[24]);
    System.out.println(ans);
  }
}
0