結果

問題 No.112 ややこしい鶴亀算
ユーザー takaaaa6takaaaa6
提出日時 2022-03-08 22:55:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-10-01 05:22:47
合計ジャッジ時間 1,968 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,840 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 16 ms
7,904 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,976 KB
testcase_07 AC 15 ms
7,864 KB
testcase_08 WA -
testcase_09 AC 15 ms
7,796 KB
testcase_10 AC 15 ms
7,872 KB
testcase_11 AC 16 ms
7,760 KB
testcase_12 AC 15 ms
7,788 KB
testcase_13 WA -
testcase_14 AC 17 ms
7,880 KB
testcase_15 AC 17 ms
7,804 KB
testcase_16 WA -
testcase_17 AC 17 ms
7,808 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 16 ms
7,876 KB
testcase_21 AC 17 ms
7,804 KB
testcase_22 AC 16 ms
7,844 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
a=list(map(int,input().split()))

for i in range(N):
    for X in range(N+1):
        if 2*(X-1) + 4*(N-X) == a[i]:
            x=X

        elif 2*X + 4*(N-X-1) == a[i]:
            x=X

print(x,N-x)
0