結果
問題 | No.166 マス埋めゲーム |
ユーザー |
|
提出日時 | 2015-06-28 02:46:55 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 628 bytes |
コンパイル時間 | 11,631 ms |
コンパイル使用メモリ | 221,276 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 19:07:34 |
合計ジャッジ時間 | 11,186 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
package mainimport ("bufio""fmt""os""strconv")func nextInt() int {i, e := strconv.Atoi(nextString())if e != nil {panic(e)}return i}func nextString() string {var sc = bufio.NewScanner(os.Stdin)sc.Split(bufio.ScanWords)sc.Scan()return sc.Text()}func main() {var H, W, N, K intfmt.Scan(&H)fmt.Scan(&W)fmt.Scan(&N)fmt.Scan(&K)if H*W%N == K%N {fmt.Println("YES")} else {fmt.Println("NO")}}