結果
| 問題 | No.779 Heisei |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-29 23:51:48 |
| 言語 | Go (1.27.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 369µs | |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 14,405 ms |
| コンパイル使用メモリ | 276,756 KB |
| 実行使用メモリ | 9,916 KB |
| 最終ジャッジ日時 | 2026-09-26 14:47:38 |
| 合計ジャッジ時間 | 15,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
// No.779 Heisei
package main
import (
"fmt"
"time"
)
func main() {
var y, m, d int
fmt.Scan(&y, &m, &d)
t := time.Date(y, time.Month(m), d, 0, 0, 0, 0, time.Local)
hs := time.Date(1989, time.Month(1), 8, 0, 0, 0, 0, time.Local)
he := time.Date(2019, time.Month(4), 30, 0, 0, 0, 0, time.Local)
if t.Compare(hs) >= 0 && t.Compare(he) <= 0 {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}