結果
問題 |
No.9010 うるう年判定
|
ユーザー |
|
提出日時 | 2017-06-17 05:29:56 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 101,468 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 20:12:05 |
合計ジャッジ時間 | 1,634 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
import std.stdio, std.string, std.conv, std.algorithm; import std.range, std.array, std.container, std.math, std.typecons; immutable int mod = 10^^9 + 7; int N; void main() { N = readln.chomp.to!int; writeln(is_uruu(N) ? "Yes" : "No"); } bool is_uruu(int x) { return !(x % 400) || (x % 100 && !(x % 4)); }