結果

問題 No.547 未知の言語
ユーザー ThistleThistle
提出日時 2018-03-25 12:35:27
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 2,505 bytes
コンパイル時間 1,540 ms
コンパイル使用メモリ 99,852 KB
実行使用メモリ 34,892 KB
最終ジャッジ日時 2023-09-08 10:03:27
合計ジャッジ時間 2,921 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
34,616 KB
testcase_01 AC 14 ms
34,636 KB
testcase_02 AC 14 ms
34,816 KB
testcase_03 AC 14 ms
34,692 KB
testcase_04 AC 14 ms
34,708 KB
testcase_05 AC 14 ms
34,572 KB
testcase_06 AC 14 ms
34,632 KB
testcase_07 AC 14 ms
34,672 KB
testcase_08 AC 14 ms
34,668 KB
testcase_09 AC 14 ms
34,812 KB
testcase_10 AC 14 ms
34,548 KB
testcase_11 AC 15 ms
34,732 KB
testcase_12 AC 14 ms
34,708 KB
testcase_13 AC 14 ms
34,608 KB
testcase_14 AC 14 ms
34,644 KB
testcase_15 AC 14 ms
34,568 KB
testcase_16 AC 14 ms
34,840 KB
testcase_17 AC 14 ms
34,564 KB
testcase_18 AC 14 ms
34,564 KB
testcase_19 AC 14 ms
34,544 KB
testcase_20 AC 14 ms
34,616 KB
testcase_21 AC 14 ms
34,772 KB
testcase_22 AC 14 ms
34,768 KB
testcase_23 AC 14 ms
34,612 KB
testcase_24 AC 14 ms
34,672 KB
testcase_25 AC 14 ms
34,628 KB
testcase_26 AC 14 ms
34,724 KB
testcase_27 AC 14 ms
34,608 KB
testcase_28 AC 14 ms
34,892 KB
testcase_29 AC 14 ms
34,612 KB
testcase_30 AC 14 ms
34,636 KB
testcase_31 AC 14 ms
34,636 KB
testcase_32 AC 14 ms
34,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<random>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<bitset>
#include<unordered_map>
using namespace std;
//---------------------------------------------------
//ライブラリゾーン!!!!
typedef long long ll;
typedef long double ld;
#define str string
#define rep(i,j) for(ll i=0;i<(long long)(j);i++)
const ll Mod = 1000000007;
const ll gosenchou = 5000000000000000;
short gh[2][4] = { { 0,0,-1,1 },{ -1,1,0,0 } };
struct P {
	ll pos, cost;
};
bool operator<(P a, P b) { return a.cost < b.cost; }
bool operator>(P a, P b) { return a.cost > b.cost; }
struct B {//隣接リスト表現
	ll to;
	ld cost;
};
struct E {//辺の情報を入れる変数
	ll from, to, cost;
};
bool operator<(E a, E b) {
	return a.cost < b.cost;
}
struct H {
	ll x, y;
};
bool operator<(H a, H b) {
	/*if (a.x != b.x) return a.x < b.x;
	return a.y < b.y;*/
	return ((a.x + 1)*(a.y + 1)) < ((b.x + 1)*(b.y + 1));
}
bool operator>(H a, H b) {
	if (a.x != b.x) return a.x > b.x;
	return a.y > b.y;
}
bool operator==(H a, H b) {
	return a.x == b.x&&a.y == b.y;
}
bool operator!=(H a, H b) {
	return a.x != b.x || a.y != b.y;
}
ll gcm(ll i, ll j) {//最大公約数
	if (i > j) swap(i, j);
	if (i == 0) return j;
	return gcm(j%i, i);
}
ld rad(H a, H b) {
	return sqrt(pow(a.x - b.x, 2.0) + pow(a.y - b.y, 2.0));
}//rad=座標上の2点間の距離
ll ari(ll a, ll b, ll c) {
	return (a + b)*c / 2;
}//等差数列の和
bool suf(ld a, ld b, ld c, ld d) {
	if (b <= c || d <= a) return 0;
	return 1;
}//[a,b),[c,d)
ll fact(ll x, ll k, ll p) {//最大値、個数
	ll sum = 1;
	for (int i = 0; i < k; i++) {
		sum *= (x--);
		sum %= p;
	}
	return sum;
}//階乗(正)
ll mod_pow(ll x, ll n, ll p) {
	ll res = 1;
	while (n > 0) {
		if (n & 1) res = res*x%p;
		x = x*x%p;
		n >>= 1;
	}
	return res;
}//x^n%p
int ctoi(char a) {
	return (int)a - '0';
}
 //#define int long long
const long long Inf = 4523372036854775807;
const int inf = 1500000000;
//----------------------------------------------------
//++++++++++++++++++++++++++++++++++++++++++++++++++++
string a[1000000];
signed main() {
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> a[i];
	}
	for (int i = 1; i <= n; i++) {
		string b;
		cin >> b;
		if (a[i] != b) {
			cout << i << endl << a[i] << endl << b << endl;
		}
	}
	getchar(); getchar();
}
0