結果
問題 |
No.304 鍵(1)
|
ユーザー |
|
提出日時 | 2018-12-18 12:02:18 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2024-07-17 02:04:09 |
合計ジャッジ時間 | 958 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
main.c: In function 'main': main.c:8:5: warning: implicit declaration of function 'getline' [-Wimplicit-function-declaration] 8 | getline(&str, &size, stdin); | ^~~~~~~
ソースコード
#include <stdio.h> char *str = NULL; size_t size; int main() { for (int i = 0; i < 1000; i++) { printf("%03d\n", i); fflush(stdout); getline(&str, &size, stdin); if (str[0] == 'u') return 0; } }