結果
問題 | No.304 鍵(1) |
ユーザー |
![]() |
提出日時 | 2018-02-13 21:57:52 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 21,376 KB |
実行使用メモリ | 24,580 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2024-07-17 01:35:00 |
合計ジャッジ時間 | 987 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:15:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%s",s[i]); | ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ int a; int i; char s[1000][10]; for(i=0;i<=999;i++){ printf("%03d\n",i); fflush(stdout); scanf("%s",s[i]); if(strcmp(s[i],"unlocked")==0){ break; } } return 0; }