結果

問題 No.112 ややこしい鶴亀算
ユーザー 👑 H20H20
提出日時 2021-11-24 14:18:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 174 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 75,832 KB
最終ジャッジ日時 2023-09-09 05:56:33
合計ジャッジ時間 3,596 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
75,532 KB
testcase_01 AC 76 ms
75,604 KB
testcase_02 AC 76 ms
75,460 KB
testcase_03 AC 74 ms
75,752 KB
testcase_04 AC 77 ms
75,460 KB
testcase_05 AC 77 ms
75,676 KB
testcase_06 AC 76 ms
75,572 KB
testcase_07 AC 76 ms
75,568 KB
testcase_08 AC 76 ms
75,408 KB
testcase_09 AC 77 ms
75,576 KB
testcase_10 AC 76 ms
75,700 KB
testcase_11 AC 77 ms
75,460 KB
testcase_12 AC 75 ms
75,540 KB
testcase_13 AC 73 ms
75,688 KB
testcase_14 AC 75 ms
75,556 KB
testcase_15 AC 74 ms
75,544 KB
testcase_16 AC 75 ms
75,580 KB
testcase_17 AC 75 ms
75,572 KB
testcase_18 AC 76 ms
75,444 KB
testcase_19 AC 75 ms
75,632 KB
testcase_20 AC 75 ms
75,788 KB
testcase_21 AC 77 ms
75,564 KB
testcase_22 AC 76 ms
75,460 KB
testcase_23 AC 77 ms
75,832 KB
testcase_24 AC 75 ms
75,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
Y = list(map(int,input().split()))
S = sum(Y)//(N-1)
for i in range(0,51):
    for j in range(0,51):
        if i*2+j*4==S and i+j==N:
            print(i,j)
0