結果
問題 | No.8047 Riddle of Cards |
ユーザー | CuriousFairy315 |
提出日時 | 2019-04-01 22:19:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-27 03:11:21 |
合計ジャッジ時間 | 806 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 |
ソースコード
N, M = map(int, input().split()) print(pow(M, N)) # 問題文 # There are N cards on the table. # Each cards are numbered from 1 to N. # Mr.yuki should write an integer, which is no less than 1 and on more than M, on each cards. # How many ways to write? # 制約 # N, M are intgers between 1 and 61. # 出力 # Output the answer in single line. # ということで、pow(M, N)が答え