結果
問題 | No.8012 Catch C code |
ユーザー |
![]() |
提出日時 | 2015-08-31 00:51:02 |
言語 | Text (cat 8.3) |
結果 |
WA
|
実行時間 | - |
コード長 | 468 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-07-18 15:50:58 |
合計ジャッジ時間 | 1,014 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 |
ソースコード
#include <iostream>#include <cstdio>#include <string>#include <cassert>using namespace std;signed main(){FILE * fp = fopen("./catch.o","r");//assert(fp != nullptr);string s;char c;while((c = getc(fp)) != EOF) s += c;auto pos = s.find("FLAG");//assert(pos != string::npos);//dump(pos);string flag;while(pos < s.size() && isprint(s[pos])){flag += s[pos];pos++;}cout << flag << endl;}