結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2019-05-10 12:44:44 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 430 bytes |
コンパイル時間 | 2,667 ms |
コンパイル使用メモリ | 65,612 KB |
実行使用メモリ | 6,812 KB |
最終ジャッジ日時 | 2024-07-02 00:58:06 |
合計ジャッジ時間 | 3,055 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'strutils' [UnusedImport]
ソースコード
import strutilslet monthes: seq[int] = @[1,2,3,4,5,6,7,8,9,10,11,12]let days: seq[int] = @[0,31,28,31,30,31,30,31,31,30,31,30,31]var count: int = 0proc suujiwa(day: int):int =if 1 <= day and day <= 9:result = dayelse:var ten: int = (day/10).intvar one: int = day mod 10result = ten + onefor month in monthes:for day in 1..days[month]:if suujiwa(day) == month:count += 1echo count