結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
tsubuan
|
| 提出日時 | 2017-08-14 18:28:18 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 1,000 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-12-31 05:48:43 |
| 合計ジャッジ時間 | 750 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
require 'date'
a = Date.new(2015, 1, 1)
b = Date.new(2015, 12, 31)
count = 0
for i in a..b
f_digit = i.day % 10
s_digit = i.day / 10
sum = f_digit + s_digit
if i.month == sum
count += 1
end
end
puts count
tsubuan