結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
|
提出日時 | 2016-08-30 19:16:43 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 2,250 ms |
コンパイル使用メモリ | 74,200 KB |
実行使用メモリ | 54,360 KB |
最終ジャッジ日時 | 2024-11-14 07:52:54 |
合計ジャッジ時間 | 5,852 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 7 |
ソースコード
import java.util.Scanner; class S27_massgame{ public static void main(String[] args){ int w, h; long n, k , end; Scanner sc = new Scanner(System.in); w = sc.nextInt(); h = sc.nextInt(); n = sc.nextLong(); k = sc.nextLong(); end = w * h % n; if(end == 0) end = n; if(k == end){ System.out.println("YES"); }else{ System.out.println("NO"); } } }