結果

問題 No.304 鍵(1)
ユーザー funakoshifunakoshi
提出日時 2019-08-26 16:58:48
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 28,460 KB
実行使用メモリ 24,360 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 02:19:43
合計ジャッジ時間 1,045 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,544 KB
testcase_01 AC 29 ms
23,652 KB
testcase_02 AC 60 ms
23,352 KB
testcase_03 AC 27 ms
23,652 KB
testcase_04 AC 43 ms
24,048 KB
testcase_05 AC 28 ms
24,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    char str[10]="";
    for(int i=0;i<1000;i++)
    {
        printf("%03d\n",i);
        fflush(0);
        scanf("%s",str);
        if(strcmp(str,"unlocked")==0)
        {
            break;
        }
    }      
    return 0;
}
0