結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
std::string s, t;
cin.ignore();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