結果

問題 No.331 CodeRunnerでやれ
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-12-24 01:09:09
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 613 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 58,252 KB
実行使用メモリ 92,548 KB
平均クエリ数 2.47
最終ジャッジ日時 2023-09-23 22:46:50
合計ジャッジ時間 8,131 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
24,012 KB
testcase_01 AC 132 ms
23,820 KB
testcase_02 AC 154 ms
24,004 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;
using i64 = long long;

class range {private: struct I{int x;int operator*(){return x;}bool operator!=(I& lhs){return x<lhs.x;}void operator++(){++x;}};I i,n;
public:range(int n):i({0}),n({n}){}range(int i,int n):i({i}),n({n}){}I& begin(){return i;}I& end(){return n;}};

void output(char ch) {
  putchar(ch);
  putchar('\n');
  fflush(stdout);
}

int main(void) {
  while(true) {
    string s; getline(cin, s);
    if(s == "Merry Christmas!") { break; }
    int x = stoi(s);
    if(x > 0) { output('F'); }
    else { output('L'); }
  }
  return 0;
}
0