結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
FF256grhy
|
| 提出日時 | 2015-11-27 22:43:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 21,760 KB |
| 実行使用メモリ | 39,888 KB |
| 最終ジャッジ日時 | 2024-07-16 21:47:24 |
| 合計ジャッジ時間 | 6,456 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%s", s);
| ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h>
char s[100];
int main(void) {
int i, j, k;
for(i = 0; i < 1000; i++) {
printf("%03d", i); fflush(stdout);
scanf("%s", s);
if(s[0] == 'u') { break; }
}
return 0;
}
FF256grhy