結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
umashika
|
| 提出日時 | 2016-01-30 00:04:32 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 375 bytes |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 40,016 KB |
| 平均クエリ数 | 0.17 |
| 最終ジャッジ日時 | 2024-07-16 22:53:30 |
| 合計ジャッジ時間 | 3,675 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 4 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:16:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
16 | scanf("%s",str);
| ^~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include<string.h>
int main(void){
int i=0;
char str[9];
do{
if(i<10){
printf("%03d\n",i);
}
else if(i<100){
printf("%02d\n",i);
}else{
printf("%d\n",i);
}
fflush(stdout);
scanf("%s",str);
i++;
}while(strcmp(str,"unlocked")!=0);//strがunlockedと一致しないかぎり継続
return 0;
}
umashika