結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
|
提出日時 | 2020-06-02 15:36:00 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 2,837 ms |
コンパイル使用メモリ | 192,296 KB |
最終ジャッジ日時 | 2025-01-10 20:34:36 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 6 WA * 1 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); string s; cin>>s; bool yes=true; for(int i=0,j=s.size()/2;i<s.size()/2;++i,++j){ if(s.at(i)!=s.at(j))yes=false; } cout<<(yes?"YES"s:"NO"s)<<"\n"s; }