結果
| 問題 |
No.1807 UMA Gacha
|
| コンテスト | |
| ユーザー |
MaineCoon
|
| 提出日時 | 2022-01-15 10:40:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 31,360 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-21 09:24:00 |
| 合計ジャッジ時間 | 1,021 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 3 WA * 18 |
ソースコード
#include <stdio.h>
int main()
{
int a;
double ans;
double k;
double b;
ans = 0;
scanf("%d %lf", &a, &b);
ans = (1.0 - b);
for (int i = 0; i <= b; i++)
{
ans = ans * b;
}
if (a == 200)
{
printf("1");
}
else
{
printf("%f", ans+b);
}
}
MaineCoon