結果
問題 | No.2109 Special Week |
ユーザー |
![]() |
提出日時 | 2024-11-18 14:39:59 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 10,316 ms |
コンパイル使用メモリ | 234,044 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-18 14:40:12 |
合計ジャッジ時間 | 11,479 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 |
ソースコード
package mainimport . "fmt"import t "time"import . "strings"func main() {var m,d,k intScan(&m,&d,&k)x,_:=t.Parse("2006/1/2",Sprint("2001/",m,"/",d))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")}}