結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2018-06-02 10:13:39 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 2,738 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-06-30 09:01:55 |
合計ジャッジ時間 | 3,185 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
import strutilsvar cnt = 0for m in 1 .. 12:var n: intcase m:of 2: n = 28of 4, 6, 9, 11: n = 30else: n = 31for d in 1 .. n:let w = $dvar s = ($w[0]).parseIntif w.len >= 2: s += ($w[1]).parseIntif m == s: cnt += 1echo cnt