結果
問題 | No.304 鍵(1) |
ユーザー |
![]() |
提出日時 | 2015-11-29 00:58:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 570 ms |
コンパイル使用メモリ | 59,672 KB |
実行使用メモリ | 39,080 KB |
最終ジャッジ日時 | 2024-07-16 21:55:56 |
合計ジャッジ時間 | 6,977 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, char**)’: main.cpp:13:22: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | fgets(buff, 1024, stdin); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include <iostream> #include <algorithm> #include <sstream> #include <vector> using namespace std; int main(int argc, char *argv[]) { for (int i = 0; i < 1000; ++i) { printf("%03d\n", i); char buff[1024]; fgets(buff, 1024, stdin); if (buff[0] == 'u') { break; } } return 0; }