結果
| 問題 | No.234 めぐるはめぐる (4) |
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2017-02-24 14:24:58 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 1,000 ms |
| コード長 | 758 bytes |
| 記録 | |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 77,380 KB |
| 最終ジャッジ日時 | 2025-12-03 23:06:44 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
ソースコード
# -*- coding: utf-8 -*- # from graphillion import GraphSet # # MAX_N = 12 # for n in xrange(1, MAX_N + 1): # universe = [] # r = 1 # t = 1 # m = (n + 1) * (n + 2) / 2 # for i in xrange(1, m + 1): # if i != t: # universe.append((i, i + 1)) # if i + r <= m: # universe.append((i, i + r)) # if i + r + 1 <= m: # universe.append((i, i + r + 1)) # if i == t: # r += 1 # t += r # GraphSet.set_universe(universe) # print GraphSet.cycles().len() ans = [ 1, 11, 110, 2402, 128967, 16767653, 5436906668, 4406952731948, 8819634719356421, 43329348004927734247, 522235268182347360718818, 15436131339319739257518081878] n = input() print ans[n - 1]
🍡yurahuna