結果
| 問題 | No.304 鍵(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-03 14:32:16 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 28,228 KB |
| 最終ジャッジ日時 | 2026-02-23 21:27:01 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:12:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%s",a);
| ^~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
int main(){
int i=0 ;
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);
i++;
fflush(stdout);
scanf("%s",a);
}while(strcmp(a,"unlocked"));
return 0;
}