結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2017-04-30 08:47:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 1,000 ms |
コード長 | 665 bytes |
コンパイル時間 | 2,991 ms |
コンパイル使用メモリ | 74,168 KB |
実行使用メモリ | 36,992 KB |
最終ジャッジ日時 | 2024-09-13 23:08:02 |
合計ジャッジ時間 | 4,115 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String[] inputs = reader.readLine().split(" "); long H = Long.parseLong(inputs[0]); long W = Long.parseLong(inputs[1]); long N = Long.parseLong(inputs[2]); long K = Long.parseLong(inputs[3]); if((H*W)%N == K%N) { System.out.println("YES"); } else { System.out.println("NO"); } } }