結果
問題 | No.331 CodeRunnerでやれ |
ユーザー |
|
提出日時 | 2015-12-24 01:09:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 613 bytes |
コンパイル時間 | 465 ms |
コンパイル使用メモリ | 58,748 KB |
実行使用メモリ | 96,020 KB |
平均クエリ数 | 2.47 |
最終ジャッジ日時 | 2024-07-16 22:30:40 |
合計ジャッジ時間 | 8,143 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 TLE * 1 -- * 13 |
ソースコード
#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;}