結果

問題 No.304 鍵(1)
ユーザー feeling_burst
提出日時 2016-05-03 22:15:43
言語 C90
(gcc 12.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 278 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 21,632 KB
実行使用メモリ 40,140 KB
最終ジャッジ日時 2024-07-16 23:40:07
合計ジャッジ時間 6,574 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |     scanf("%s", ans);
      |     ^~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>
#include <math.h>
int main(void) {
  char str[] = "000";
  char ans[] = "000";
  

  while (1) {
    scanf("%s", ans);
    if (strcmp(str,ans) == 0) {
      break;
    }
    printf("locked\n");
  }
  printf("unlocked\n");
  
  return 0;
}
0