結果

問題 No.739 大事なことなので2度言います
コンテスト
ユーザー Maboy
提出日時 2021-06-17 17:41:41
言語 Swift
(6.2.4)
コンパイル:
swiftc _filename_ -Ounchecked -o a.out
実行:
./a.out
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 249 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12,449 ms
コンパイル使用メモリ 129,360 KB
実行使用メモリ 9,472 KB
最終ジャッジ日時 2026-06-06 10:34:02
合計ジャッジ時間 11,883 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

let S = readLine()!
var c = S.count
let s0 = S[S.index(S.startIndex, offsetBy: 0)...S.index(S.startIndex, offsetBy: c / 2 - 1)]
let s1 = S[S.index(S.startIndex, offsetBy: c / 2)...S.index(S.startIndex, offsetBy: c-1)]
print(s0 == s1 ? "YES" : "NO")
0