結果
問題 | No.547 未知の言語 |
ユーザー |
![]() |
提出日時 | 2017-08-27 15:26:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 306 ms / 2,000 ms |
コード長 | 757 bytes |
コンパイル時間 | 2,005 ms |
コンパイル使用メモリ | 173,076 KB |
実行使用メモリ | 394,496 KB |
最終ジャッジ日時 | 2024-06-26 02:41:54 |
合計ジャッジ時間 | 13,461 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0; i<(n); i++) #define REP2(i,x,n) for(int i=x; i<(n); i++) #define ALL(n) begin(n),end(n) #define SORT(x) sort((x).begin(),(x).end(),greater<int>()) using LL=long long; using ULL=unsigned long long; using PII=pair<int,int>; const int INF = numeric_limits<int>::max(); struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; vector<vector<int>> memo( 10000 + 1, vector<int>( 10000 + 1, -1 ) ); int main() { int N; cin >> N; vector<string> S(N), T(N); REP( i, N ) { cin >> S[ i ]; } REP( i, N ) { cin >> T[ i ]; } REP( i, N ) { if( S[ i ] != T[ i ] ) { cout << i + 1 << endl; cout << S[ i ] << endl; cout << T[ i ] << endl; } } return 0; }