結果

問題 No.1329 Square Sqsq
ユーザー chineristACchineristAC
提出日時 2021-01-08 22:44:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 2,652 ms
コンパイル使用メモリ 86,468 KB
実行使用メモリ 71,564 KB
最終ジャッジ日時 2023-08-10 10:48:01
合計ジャッジ時間 3,410 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,268 KB
testcase_01 AC 69 ms
71,564 KB
testcase_02 AC 70 ms
71,392 KB
testcase_03 AC 68 ms
71,000 KB
testcase_04 AC 69 ms
71,448 KB
testcase_05 AC 70 ms
71,476 KB
testcase_06 AC 69 ms
71,520 KB
testcase_07 AC 69 ms
71,172 KB
testcase_08 AC 68 ms
71,336 KB
testcase_09 AC 70 ms
71,032 KB
testcase_10 AC 68 ms
71,176 KB
testcase_11 AC 74 ms
71,032 KB
testcase_12 AC 69 ms
71,320 KB
testcase_13 AC 70 ms
71,240 KB
testcase_14 AC 68 ms
71,404 KB
testcase_15 AC 70 ms
71,024 KB
testcase_16 AC 69 ms
71,264 KB
testcase_17 AC 70 ms
71,032 KB
testcase_18 AC 69 ms
71,316 KB
testcase_19 AC 67 ms
71,328 KB
testcase_20 AC 69 ms
71,240 KB
testcase_21 AC 69 ms
71,120 KB
testcase_22 AC 69 ms
71,264 KB
testcase_23 AC 70 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
digit = len(N)

if digit<=2:
    print(1)
else:
    ng = 1
    ok = digit
    while ok-ng>1:
        mid = (ok+ng)//2
        if 2*mid>=digit:
            ok = mid
        else:
            ng = mid
    print(ok)
0