結果

問題 No.773 コンテスト
ユーザー iwa_choco_168
提出日時 2019-12-06 09:37:40
言語 Java
(openjdk 23)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 2,466 ms
コンパイル使用メモリ 74,952 KB
実行使用メモリ 41,708 KB
最終ジャッジ日時 2024-12-23 05:01:39
合計ジャッジ時間 6,459 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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