結果
| 問題 | No.304 鍵(1) |
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2016-08-26 13:48:09 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 2,000 ms |
| コード長 | 235 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 28,744 KB |
| 最終ジャッジ日時 | 2026-02-23 22:18:07 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%s", state);
| ^~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <string.h>
int main() {
char state[9];
int i;
for (i = 0; i <= 999; i++) {
printf("%03d\n", i);
fflush(stdout);
scanf("%s", state);
if (strcmp(state, "unlocked") == 0) return 0;
}
return 0;
}
くれちー