結果
| 問題 | No.313 π |
| コンテスト | |
| ユーザー |
mayoko_
|
| 提出日時 | 2015-12-07 08:41:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 1,238 bytes |
| 記録 | |
| コンパイル時間 | 826 ms |
| コンパイル使用メモリ | 85,916 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-14 18:12:20 |
| 合計ジャッジ時間 | 7,371 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 32 |
ソースコード
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
//#include<cctype>
#include<climits>
#include<iostream>
#include<string>
#include<vector>
#include<map>
//#include<list>
#include<queue>
#include<deque>
#include<algorithm>
//#include<numeric>
#include<utility>
#include<complex>
//#include<memory>
#include<functional>
#include<cassert>
#include<set>
#include<stack>
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
const int MAX = 1<<18;
char buf[MAX];
string query(string url) {
FILE *f = popen(("curl -s -k \"" + url + "\"").c_str(), "r");
if (f == NULL) {
assert(false);
}
string res;
while (!feof(f)) {
if (fgets(buf, MAX, f) == NULL) break;
res += (string)(buf);
}
pclose(f);
return res;
}
int main() {
string t = query("http://www.geocities.jp/unko_der/sample_01.txt");
assert(t.size() == 200002);
t[0] = '3';
string s;
cin >> s;
for (int i = 0; i < 200002; i++) {
if (t[i] != s[i]) {
cout << s[i] << " " << t[i] << endl;
break;
}
}
return 0;
}
mayoko_