結果
問題 |
No.1940 Escape through + -
|
ユーザー |
![]() |
提出日時 | 2024-11-25 20:58:19 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 12,959 ms |
コンパイル使用メモリ | 229,072 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 20:58:49 |
合計ジャッジ時間 | 14,166 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
package main import . "fmt" import . "os" import bf "bufio" func main() { rd:=bf.NewReader(Stdin) var n,m,s int64 Fscan(rd,&n,&m,&s) for ;n>0;n-- { var a int64 Fscan(rd,&a) s-=a } if s<0 { s=-s } if s%m==0 { Println("Yes") } else { Println("No") } }