結果

問題 No.166 マス埋めゲーム
ユーザー funakoshi
提出日時 2019-08-26 13:30:35
言語 C
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 646 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 30,208 KB
実行使用メモリ 13,632 KB
最終ジャッジ日時 2024-11-07 18:57:31
合計ジャッジ時間 2,775 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    int gyou,retu,ppl,loser,now=1;
    scanf("%d %d %d %d",&gyou,&retu,&ppl,&loser);
    for(int i=0;i<retu;i++)
    {
        for(int j=0;j<gyou;j++)
        {
            if(i==retu-1&&j==gyou-1)
            {
                if(now==loser)
                {
                    printf("YES");
                }
                else
                {
                    printf("NO");
                }
            }
            now++;
            if(now>ppl)
            {
                now=1;
            }
        }
    }
}
0