結果
| 問題 |
No.9010 うるう年判定
|
| ユーザー |
|
| 提出日時 | 2020-08-22 18:11:13 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 312 bytes |
| コンパイル時間 | 12,971 ms |
| コンパイル使用メモリ | 241,988 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 01:26:57 |
| 合計ジャッジ時間 | 11,381 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
package main
import (
"fmt"
"strconv"
)
func main() {
var input string
fmt.Scan(&input)
year, _ := strconv.Atoi(input)
if year % 400 == 0 {
fmt.Println("Yes")
} else if year % 100 == 0 {
fmt.Println("No")
} else {
if year % 4 == 0 {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
}