結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2018-04-22 11:18:55 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 352 bytes |
コンパイル時間 | 2,543 ms |
コンパイル使用メモリ | 74,148 KB |
実行使用メモリ | 54,252 KB |
最終ジャッジ日時 | 2024-06-27 05:36:39 |
合計ジャッジ時間 | 6,118 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 WA * 4 RE * 5 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); int n = sc.nextInt(); int k = sc.nextInt(); int loser = h * w % n == 0 ? n : h * w % n; if(k == loser) System.out.println("YES"); else System.out.println("NO"); } }