結果
問題 | No.547 未知の言語 |
ユーザー |
![]() |
提出日時 | 2017-10-31 18:27:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 632 ms |
コンパイル使用メモリ | 63,676 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 02:52:45 |
合計ジャッジ時間 | 1,585 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <utility> using namespace std; int main(void) { int n; cin >> n; vector <pair<string, string>> str(n); for (int i = 0; i < n; i++) { cin >> str[i].first; } for (int i = 0; i < n; i++) { cin >> str[i].second; if (str[i].first != str[i].second) cout << i + 1 << endl << str[i].first << endl << str[i].second << endl; } return 0; }