結果
問題 |
No.2155 みちらcolor
|
ユーザー |
![]() |
提出日時 | 2025-05-09 02:16:07 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 10,853 ms |
コンパイル使用メモリ | 246,736 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-09 02:16:24 |
合計ジャッジ時間 | 13,010 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 64 |
ソースコード
package main import . "fmt" func main() { var n,m,l int Scan(&n,&m,&l) cur := make([]bool, 1001) cur[l] = true for i := 0; i < n; i++{ var a int Scan(&a) tmp := append([]bool{}, cur...) for i, ex := range cur { if !ex { continue } tmp[(i+a)/2] = true } cur = tmp } if cur[m] { Println("Yes") } else { Println("No") } }