結果

問題 No.166 マス埋めゲーム
ユーザー funakoshifunakoshi
提出日時 2019-08-26 13:30:35
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 646 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 30,848 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-04-25 08:31:08
合計ジャッジ時間 2,645 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
10,624 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

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