結果

問題 No.166 マス埋めゲーム
ユーザー Tsu0664
提出日時 2015-05-14 00:46:23
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 19,584 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-06 03:32:06
合計ジャッジ時間 725 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 - 1) % n) + 1 ;
if (k == loser){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
}
0