結果

問題 No.111 あばばばば
ユーザー togatogatogatoga
提出日時 2015-09-03 00:09:33
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 769 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 6,236 KB
最終ジャッジ日時 2023-09-26 02:28:57
合計ジャッジ時間 951 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,104 KB
testcase_01 AC 11 ms
6,036 KB
testcase_02 AC 11 ms
6,088 KB
testcase_03 AC 11 ms
6,100 KB
testcase_04 AC 12 ms
6,236 KB
testcase_05 AC 11 ms
6,144 KB
testcase_06 AC 11 ms
6,036 KB
testcase_07 AC 11 ms
6,096 KB
testcase_08 AC 11 ms
6,108 KB
testcase_09 AC 11 ms
5,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
S = 'a'
# while (True):
#     S += 'ba'
#     if (len(S) == N):
#         break
# pail = [[False] * 50 for i in range(50)]
# for i in range(N):
#     left = i
#     right = i
#     while (left >= 0 and right < N):
#         if (S[left] == S[right]):
#             pail[left][right] = True
#         else:
#             break
#         left -= 1
#         right += 1
#     left = i
#     right = i + 1
#     while (left >= 0 and right < N):
#         if (S[left] == S[right]):
#             pail[left][right] = True
#         else:
#             break
#         left -= 1
#         right += 1
# res = 0
# for i in range(N):
#     for j in range(i, N):
#         if ((j - i) + 1 >= 2 and pail[i][j]):
#             res += 1
# print res
a = N / 2
print a ** 2
0