結果
| 問題 |
No.2186 冪乗の片側極限
|
| コンテスト | |
| ユーザー |
chro_96
|
| 提出日時 | 2023-01-13 21:35:22 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 315 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 16:42:53 |
| 合計ジャッジ時間 | 1,573 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 56 |
ソースコード
#include <stdio.h>
int main () {
long long a = 0LL;
int b = 0;
int res = 0;
long long ans = 1LL;
res = scanf("%lld", &a);
res = scanf("%d", &b);
if (a == 0LL) {
printf("0\n");
return 0;
}
while (b > 0) {
ans *= a;
b--;
}
printf("%lld\n", ans);
return 0;
}
chro_96