結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
troro_kelp
|
| 提出日時 | 2018-12-30 13:41:52 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 596 bytes |
| コンパイル時間 | 989 ms |
| コンパイル使用メモリ | 94,912 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 02:02:14 |
| 合計ジャッジ時間 | 1,592 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 7 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <stack>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <functional>
#include <numeric>
using ll = long long;
using namespace std;
const ll MOD = 1e9 + 7;
int arr[32];
int main(void)
{
string s;
cin >> s;
string t1 = s.substr(0, (s.size() + 1) / 2);
string t2 = s.substr((s.size() + 1) / 2, s.size() / 2);
cout << t1 << " " << t2 << endl;
if (t1 == t2)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
troro_kelp