結果
問題 | No.8047 Riddle of Cards |
ユーザー |
![]() |
提出日時 | 2019-04-01 22:34:16 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 560 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 30,848 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 03:29:26 |
合計ジャッジ時間 | 534 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 7 |
ソースコード
#include<stdio.h>#include<stdlib.h>#include<stdint.h>#include<inttypes.h>#include<string.h>#include<math.h>typedef int32_t i32;typedef int64_t i64;#define MAX(a,b) ((a) > (b) ? (a) : (b))#define MIN(a,b) ((a) < (b) ? (a) : (b))#define ABS(a) ((a) > (0) ? (a) : -(a))void run (void) {i32 n, m;scanf ("%" SCNi32 "%" SCNi32, &n, &m);if (n == 16 && m == 16) {puts("18446744073709551616");return;}uint64_t ans = 1;while (n--) ans *= (uint32_t)m;printf ("%" PRIu64 "\n", ans);}int main (void) {run ();return 0;}