結果

問題 No.420 mod2漸化式
ユーザー kimiyukikimiyuki
提出日時 2016-09-09 23:40:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,563 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-04-28 05:57:35
合計ジャッジ時間 2,242 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,368 KB
testcase_01 AC 31 ms
10,496 KB
testcase_02 AC 30 ms
10,496 KB
testcase_03 AC 30 ms
10,368 KB
testcase_04 AC 31 ms
10,368 KB
testcase_05 AC 30 ms
10,368 KB
testcase_06 AC 31 ms
10,624 KB
testcase_07 AC 30 ms
10,496 KB
testcase_08 AC 30 ms
10,496 KB
testcase_09 AC 30 ms
10,624 KB
testcase_10 AC 31 ms
10,368 KB
testcase_11 AC 30 ms
10,624 KB
testcase_12 AC 30 ms
10,624 KB
testcase_13 AC 30 ms
10,368 KB
testcase_14 AC 31 ms
10,368 KB
testcase_15 AC 29 ms
10,496 KB
testcase_16 AC 30 ms
10,624 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# #include <iostream>
# #include <array>
# #define repeat(i,n) for (int i = 0; (i) < (n); ++(i))
# typedef long long ll;
# using namespace std;
# int f(int n) { return n ? f(n/2) + n%2 : 0; }
# int main() {
#     array<int,32> cnt = {};
#     array<ll, 32> acc = {};
#     for (ll x = 0; x < 1ll<<32; ++ x) {
#         int y = f(x);
#         cnt[y] += 1;
#         acc[y] += x;
#     }
#     repeat (i,32) {
#         cout << i << ' ' << cnt[i] << ' ' << acc[i] << endl;
#     }
#     return 0;
# }
s = '''
0 1 0
1 31 2147483647
2 465 64424509410
3 4495 934155386445
4 31465 8718783606820
5 169911 58851789346035
6 736281 306029304599382
7 2629575 1275122102497425
8 7888725 4371847208562600
9 20160075 12569060724617475
10 44352165 30724370660176050
11 84672315 64521178386369705
12 141120525 117311233429763100
13 206253075 185742786263791575
14 265182525 257182319442172950
15 300540195 312292816465495725
16 300540195 333112341858162736
17 265182525 312294813625288396
18 206253075 257317460588146085
19 141120525 188905089079627662
20 84672315 151193049314530275
21 44352165 255012276588325620
22 20160075 636832406119231469
23 7888725 1151519333276572950
24 2629575 1295182151872598219
25 736281 887125334192115150
26 169911 363970848952362851
27 31465 86645714643605400
28 4495 11302653123907449
29 465 730696344353382
30 31 19366007569099
31 1 139586437584
'''
import collections
g = collections.defaultdict()
for line in s.strip().splitlines():
    a, b, c = map(int, line.split())
    g[a] = (b, c)
x = int(input())
print(*g[x])
0