結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2017-01-24 11:15:13 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 8 ms / 1,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 435 ms |
コンパイル使用メモリ | 6,952 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 01:17:55 |
合計ジャッジ時間 | 611 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict; use warnings; my %month = (28 => [2], 30 => [4, 6, 9, 11], 31 => [1, 3, 5, 7, 8, 10, 12]); my $ans = 0; for my $i (keys %month) { for my $j (@{$month{$i}}){ for my $k (1..$i){ if($j == eval(join('+', split('', $k)))){ $ans++; } } } } print $ans;