結果

問題 No.2371 最大の試練それは起床
ユーザー Yuzu Mashiro
提出日時 2024-06-26 10:54:23
言語 Swift
(6.0.3)
結果
WA  
実行時間 -
コード長 642 bytes
コンパイル時間 12,226 ms
コンパイル使用メモリ 128,784 KB
実行使用メモリ 8,960 KB
最終ジャッジ日時 2024-06-26 10:54:57
合計ジャッジ時間 7,629 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

// #region
enum Input {
  static func int() -> Int {
    return Int(readLine()!)!
  }

  static func ints() -> (Int, Int) {
    readLine()!.split(separator: " ").map { Int($0)! }[0, 1]
  }
}

extension Bool {
  func print<T>(yes: T, no: T) {
    Swift.print(self ? yes : no)
  }
}

extension String {
  func print() {
    Swift.print(self)
  }
}

extension Array {
  subscript(a: Int, b: Int) -> (Element, Element) {
    (self[a], self[b])
  }
}
// #endregion

let (h, m) = Input.ints()
var ans = ""

if h <= 6 || (h == 7 && m < 30) {
  ans = "Yes"
} else if (h == 8 && m < 30) || h >= 9 {
  ans = "No"
} else {
  ans = "Late"
}

ans.print()
0