結果
問題 |
No.304 鍵(1)
|
ユーザー |
![]() |
提出日時 | 2015-12-03 21:59:54 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2024-07-16 21:59:12 |
合計ジャッジ時間 | 1,037 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:15:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%s",a); | ^~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<string.h> int main(void){ int i=0,j=0,k=0,x; char a[10]; do{ if(i<10){ printf("00%d\n",i); }else if(i<100){ printf("0%d\n",i); }else{ printf("%d\n",i); } fflush(stdout); scanf("%s",a); i++; }while(strcmp(a,"unlocked") != 0); return 0; }