結果
問題 | No.547 未知の言語 |
ユーザー |
|
提出日時 | 2017-07-28 22:40:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 963 bytes |
コンパイル時間 | 1,120 ms |
コンパイル使用メモリ | 112,260 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 02:17:39 |
合計ジャッジ時間 | 1,920 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; long long int power(long long int x, long long int n, long long int M) { long long int tmp = 1; if (n > 0) { tmp = power(x, n / 2, M); if (n % 2 == 0) tmp = (tmp*tmp) % M; else tmp = (((tmp*tmp) % M)*x) % M; } return tmp; } long long int N, M, K, Q, W, H, L, R; long long int ans; int main() { ios::sync_with_stdio(false); cin >> N; vector<string> s(N); vector<string> t(N); for (int i = 0; i < N; i++)cin >> s[i]; for (int i = 0; i < N; i++)cin >> t[i]; for (int i = 0; i < N; i++) { if (s[i] != t[i]) { cout << i + 1 << endl; cout << s[i] << endl; cout << t[i] << endl; } } return 0; }