結果
問題 | No.384 マス埋めゲーム2 |
ユーザー |
![]() |
提出日時 | 2016-10-16 20:46:11 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 133 ms / 1,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 3,840 ms |
コンパイル使用メモリ | 74,248 KB |
実行使用メモリ | 41,680 KB |
最終ジャッジ日時 | 2024-11-22 12:10:48 |
合計ジャッジ時間 | 7,292 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import java.util.Scanner;public class Test {public static void main(String[] args) {Scanner sc = new Scanner(System.in);long n = sc.nextLong()+sc.nextLong()-1, a = sc.nextLong(), b = sc.nextLong();if((n-b)%a == 0){System.out.println("YES");} else {System.out.println("NO");}}}