結果
問題 | No.739 大事なことなので2度言います |
ユーザー | curryudon08 |
提出日時 | 2020-06-12 12:33:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 495 bytes |
コンパイル時間 | 2,246 ms |
コンパイル使用メモリ | 99,540 KB |
実行使用メモリ | 22,520 KB |
最終ジャッジ日時 | 2023-09-06 09:03:50 |
合計ジャッジ時間 | 3,656 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 51 ms
20,480 KB |
testcase_01 | AC | 52 ms
20,364 KB |
testcase_02 | AC | 52 ms
20,596 KB |
testcase_03 | AC | 51 ms
20,516 KB |
testcase_04 | AC | 51 ms
20,420 KB |
testcase_05 | AC | 51 ms
20,584 KB |
testcase_06 | AC | 51 ms
20,488 KB |
testcase_07 | AC | 51 ms
20,400 KB |
testcase_08 | AC | 53 ms
20,472 KB |
testcase_09 | AC | 52 ms
20,412 KB |
testcase_10 | AC | 53 ms
22,520 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace _0739 { class Program { static void Main(string[] args) { var s = Console.ReadLine().Trim(); if(s.Length % 2 != 0){ Console.WriteLine("NO"); }else{ var h1 = s.Substring(0,s.Length / 2); var h2 = s.Substring(s.Length / 2, s.Length / 2); var f = h1.Equals(h2); Console.WriteLine(f ? "YES" : "NO"); } } } }