結果
問題 | No.2371 最大の試練それは起床 |
ユーザー |
![]() |
提出日時 | 2023-07-08 11:31:20 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 609 bytes |
コンパイル時間 | 3,268 ms |
コンパイル使用メモリ | 109,112 KB |
実行使用メモリ | 26,132 KB |
最終ジャッジ日時 | 2024-07-22 07:12:02 |
合計ジャッジ時間 | 2,157 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;public class Hello{static void Main(){string[] line = Console.ReadLine().Trim().Split(' ');var h = int.Parse(line[0]);var m = int.Parse(line[1]);getAns(h, m);}static int calc(int h, int m, int s) => h * 3600 + m * 60 + s;static void getAns(int h, int m){var start = calc(7, 30, 0);var end = calc(8, 30, 0);var wake = calc(h, m, 30);string ans;if (wake > end) ans = "No";else if (wake < start) ans = "Yes";else ans = "Late";Console.WriteLine(ans);}}