0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

yukicoder contest 291 参戦記

Posted at

yukicoder contest 291 参戦記

A 1476 esreveR dna esreveR

ai,i と aN-i,N-i の組み合わせ、それぞれが4C2で6パターンとなり、それぞれの組み合わせは互いに影響しあわないので、6⌊N/2⌋が答えとなる.

m = 998244353

N = int(input())

print(pow(6, N // 2, m))
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?