結果
問題 | No.2109 Special Week |
ユーザー |
![]() |
提出日時 | 2024-11-18 14:32:34 |
言語 | Go (1.23.4) |
結果 |
RE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 13,507 ms |
コンパイル使用メモリ | 239,776 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-18 14:32:50 |
合計ジャッジ時間 | 14,811 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 37 |
ソースコード
package mainimport . "fmt"import t "time"import . "strings"func main() {var m,d,k intScan(&m,&d,&k)x:=t.Date(2001,t.Month(m),d,0,0,0,0,nil)s:=x.Format("0102")for i:=0;i<6;i++ {x=x.AddDate(0,0,1)s+=x.Format("0102")}c:=0for i:=0;i<=9;i++ {if Contains(s,Sprint(i)) {c++}}if c>=k {Println("Yes")} else {Println("No")}}