結果
問題 | No.166 マス埋めゲーム |
ユーザー |
![]() |
提出日時 | 2019-08-26 13:35:06 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 29,440 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 18:57:35 |
合計ジャッジ時間 | 950 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdbool.h>#include <math.h>int main(void){long long int gyou,retu,ppl,loser;scanf("%lld %lld %lld %lld",&gyou,&retu,&ppl,&loser);if((gyou*retu-1)%ppl+1==loser){printf("YES");}else{printf("NO");}}