結果
問題 | No.8012 Catch C code |
ユーザー |
![]() |
提出日時 | 2015-08-31 00:49:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 431 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 56,184 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-07-18 15:50:42 |
合計ジャッジ時間 | 965 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 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");//dump(pos);string flag;while(pos < s.size() && isprint(s[pos])){flag += s[pos];pos++;}cout << flag << endl;}