結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-17 17:41:41 |
| 言語 | Swift (6.4) |
| 結果 |
AC
不安定
|
| 実行時間 | 3 ms / 2,000 ms |
| + 708µs | |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 9,297 ms |
| コンパイル使用メモリ | 128,680 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-10-10 10:13:29 |
| 合計ジャッジ時間 | 10,520 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")