結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
|
提出日時 | 2021-06-17 17:41:41 |
言語 | Swift (6.0.3) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 8,905 ms |
コンパイル使用メモリ | 117,424 KB |
実行使用メモリ | 9,216 KB |
最終ジャッジ日時 | 2025-01-03 02:19:55 |
合計ジャッジ時間 | 8,772 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
let S = readLine()!var c = S.countlet 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")