結果

問題 No.166 マス埋めゲーム
ユーザー Tsu0664
提出日時 2015-05-14 00:24:17
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 19,456 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-06 03:32:00
合計ジャッジ時間 796 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 9 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
int h = fgetc(stdin); 
int w = fgetc(stdin);
int n = fgetc(stdin);
int k = fgetc(stdin);
int loser = ((h * w) % n);
if (loser == 0)
    loser = n;

if (k == loser){
    printf("YES\n");
}else{
  printf("NO\n");
}

return 0;
}
0