結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-02 21:51:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 530 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 60,144 KB |
| 実行使用メモリ | 40,512 KB |
| 最終ジャッジ日時 | 2024-07-16 22:49:30 |
| 合計ジャッジ時間 | 6,957 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:25:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
25 | scanf("%s",s);
| ~~~~~^~~~~~~~
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstring>
#include <algorithm>
#include <limits.h>
#include <cmath>
#include <time.h>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
int test = 0;
/* ここからが本編 */
int main(void)
{
int i,j,k,l;
char s[10];
for(i=0;i<1000;i++) {
printf("%03d\n",i);
fflush(stdin);
scanf("%s",s);
if(s[0] == 'u') break;
}
return 0;
}