結果
| 問題 | 
                            No.304 鍵(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             sasa
                         | 
                    
| 提出日時 | 2025-03-07 17:08:21 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 62 ms / 2,000 ms | 
| コード長 | 179 bytes | 
| コンパイル時間 | 526 ms | 
| コンパイル使用メモリ | 27,008 KB | 
| 実行使用メモリ | 25,960 KB | 
| 平均クエリ数 | 309.17 | 
| 最終ジャッジ日時 | 2025-03-07 17:08:23 | 
| 合計ジャッジ時間 | 1,492 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |                 scanf("%s",key);
      |                 ~~~~~^~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
	char key[10];
	for(int i = 0;i < 1000;i++){
		printf("%03d\n",i);
		fflush(stdout);
		scanf("%s",key);
		if(key[0] == 'u'){
			return 0;
		}	
	}
}
            
            
            
        
            
sasa