結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2015-12-28 23:50:04 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 4,055 ms |
コンパイル使用メモリ | 74,820 KB |
実行使用メモリ | 41,580 KB |
最終ジャッジ日時 | 2024-09-19 08:14:03 |
合計ジャッジ時間 | 6,625 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 1 RE * 5 |
ソースコード
public class No_166 { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); long l = sc.nextLong() * sc.nextLong(); int n = sc.nextInt(); int k = sc.nextInt(); String ans = ""; if (k == l % n || l == k) { ans = "YES"; } else { ans = "NO"; } System.out.println(ans); sc.close(); } }