結果
問題 | No.739 大事なことなので2度言います |
ユーザー | Coder |
提出日時 | 2018-10-05 21:28:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 1,564 ms |
コンパイル使用メモリ | 166,552 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-20 16:37:38 |
合計ジャッジ時間 | 2,132 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; char S[ 100 ]; char T[ 100 ]; int main() { int i; ios::sync_with_stdio( false ); cin.tie( 0 ); cin >> S; i = strlen( S ); i /= 2; strncpy( T, S, i ); if( strcmp( T, S + i ) == 0 ) cout << "YES" << endl; else cout << "NO" << endl; return 0; }