結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2016-08-31 17:35:09 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 428 bytes |
コンパイル時間 | 633 ms |
コンパイル使用メモリ | 107,176 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-06-12 04:02:40 |
合計ジャッジ時間 | 917 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
import std.algorithm, std.array, std.container, std.range, std.bitmanip;import std.numeric, std.math, std.bigint, std.random;import std.string, std.conv, std.stdio, std.typecons;const auto days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];void main(){auto r = 0;foreach (m; 1..12 + 1) {foreach (d; 1..days[m - 1] + 1) {auto e = d / 10 + d % 10;if (m == e) r += 1;}}writeln(r);}