結果
| 問題 | 
                            No.304 鍵(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             成りすましはダメよ
                         | 
                    
| 提出日時 | 2015-12-05 09:15:08 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 58 ms / 2,000 ms | 
| コード長 | 154 bytes | 
| コンパイル時間 | 197 ms | 
| コンパイル使用メモリ | 20,224 KB | 
| 実行使用メモリ | 25,220 KB | 
| 平均クエリ数 | 309.17 | 
| 最終ジャッジ日時 | 2024-07-16 21:59:58 | 
| 合計ジャッジ時間 | 953 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:1: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
    9 | gets(s);
      | ^~~~
      | fgets
/usr/bin/ld: /tmp/ccO1Vsjr.o: in function `main':
main.c:(.text.startup+0x56): 警告: the `gets' function is dangerous and should not be used.
            
            ソースコード
#include <stdio.h>
int main(void) {
char s[257];
int i = 0;
start:
printf("%03d\n",i++);
fflush(stdout);
gets(s);
if (s[0]=='l') goto start;
return 0;}
            
            
            
        
            
成りすましはダメよ