結果

問題 No.331 CodeRunnerでやれ
コンテスト
ユーザー yuppe19 😺
提出日時 2015-12-24 00:56:30
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 612 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 342 ms
コンパイル使用メモリ 73,784 KB
実行使用メモリ 29,024 KB
平均クエリ数 1.00
最終ジャッジ日時 2026-03-30 21:14:08
合計ジャッジ時間 3,495 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 1 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;}};

const int inf = 20151224;
void output(char ch) {
  putchar(ch);
  putchar('\n');
  fflush(stdout);
}

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