結果

問題 No.331 CodeRunnerでやれ
ユーザー motimoti
提出日時 2015-12-24 00:13:30
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 1,169 bytes
コンパイル時間 891 ms
コンパイル使用メモリ 99,628 KB
実行使用メモリ 82,640 KB
最終ジャッジ日時 2023-09-23 22:32:47
合計ジャッジ時間 13,971 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
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>
#include <cmath>
#include <vector>
#include <complex>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <iomanip>
#include <assert.h>
#include <array>
#include <cstdio>
#include <cstring>
#include <random>
#include <functional>
#include <numeric>
#include <bitset>

using namespace std;

#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
#define all(c) (c).begin(), (c).end()
#define zero(a) memset(a, 0, sizeof a)
#define minus(a) memset(a, -1, sizeof a)
#define minimize(a, x) a = std::min(a, x)
#define maximize(a, x) a = std::max(a, x)

typedef long long ll;
int const inf = 20151224;

int in;
void isover(string const& in_) {
  if(in_ == "Merry Christmas!") {
    exit(0);
  }
  in = stoi(in_);
}

int main() {

  string in_;
  cin >> in_; isover(in_);
  if(in < inf) {
    rep(i, in) {
      cout << "F" << endl; cout << flush;
    }
  }

  while(1) {
    cin >> in_; isover(in_);
    if(in != inf) {
      cout << "L" << endl; cout << flush;
    }
    else {
      cout << "F" << endl; cout << flush;
    }
  }

  return 0;
}
0