結果

問題 No.304 鍵(1)
ユーザー funakoshifunakoshi
提出日時 2019-08-26 16:35:44
言語 C
(gcc 12.3.0)
結果
TLE  
実行時間 -
コード長 627 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 28,464 KB
実行使用メモリ 35,736 KB
最終ジャッジ日時 2023-09-23 18:04:41
合計ジャッジ時間 6,875 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    char ans[4]="";
    scanf("%s",&ans);
    for(int i=0;i<=9;i++)
    {
        for(int j=0;j<=9;j++)
        {
            for(int k=0;k<=9;k++)
            {
                char lockorunlock[10]="";
                scanf("%s",lockorunlock);
                if(strcmp(lockorunlock,"unlock")==0)
                {
                    printf("%d%d%d",i,j,k);
                    goto loopend;
                }
                printf("%d%d%d",i,j,k);
            }
        }
    }
    loopend:
    return 0;
}
0