結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
|
提出日時 | 2020-07-28 23:57:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 1,394 ms |
コンパイル使用メモリ | 167,376 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 21:07:16 |
合計ジャッジ時間 | 1,941 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 7 |
ソースコード
// yukicoder No.739 #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int len = s.size() / 2; string t = s.substr(0, len); string u = s.substr(len); cout << t << "\n"; cout << u << "\n"; if(t.compare(u) == 0) cout << "YES" << "\n"; else cout << "NO" << "\n"; return 0; }