結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-17 17:41:41 |
| 言語 | Swift (6.2.4) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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")