結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
uafr_cs
|
| 提出日時 | 2015-05-15 18:11:05 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 1,000 ms |
| コード長 | 507 bytes |
| コンパイル時間 | 2,478 ms |
| コンパイル使用メモリ | 74,272 KB |
| 実行使用メモリ | 41,228 KB |
| 最終ジャッジ日時 | 2024-07-06 03:58:57 |
| 合計ジャッジ時間 | 5,974 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
final long H = sc.nextLong();
final long W = sc.nextLong();
final long N = sc.nextLong();
final long K = sc.nextLong();
System.out.println((H * W) % N == (K % N) ? "YES" : "NO");
}
}
uafr_cs