結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2018-02-13 21:44:52 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 230 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 40,144 KB |
| 最終ジャッジ日時 | 2024-07-16 15:33:11 |
| 合計ジャッジ時間 | 7,051 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
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<ctype.h>
int main(){
int a;
int i;
char s[999][10];
for(i=0;i<999;i++){
printf("%03d\n",i);
scanf("%s",s[i]);
if(strcmp(s[i],"unlocked")==0){
break;
}
}
return 0;
}
Haijinn