結果

問題 No.547 未知の言語
ユーザー moti
提出日時 2017-08-13 16:36:53
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 2,313 ms
コンパイル使用メモリ 193,748 KB
最終ジャッジ日時 2025-01-05 02:18:44
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
std::string s, t;
getline(cin, s);getline(cin, s); getline(cin, t);
stringstream ss(s), tt(t);
int cnt = 1;
for (;;) {
ss >> s; tt >> t;
if(s != t) {
cout << cnt << "\n" << s << "\n" << t << "\n";
exit(0);
}
cnt++;
}
}
0