結果
| 問題 | No.598 オーバーフローファンタジー |
| コンテスト | |
| ユーザー |
ECHO_1221
|
| 提出日時 | 2017-12-05 03:43:54 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 506 ms |
| コンパイル使用メモリ | 40,992 KB |
| 実行使用メモリ | 11,424 KB |
| 最終ジャッジ日時 | 2026-05-22 15:05:47 |
| 合計ジャッジ時間 | 9,476 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 TLE * 2 |
| other | -- * 28 |
ソースコード
#include <stdio.h>
int main()
{
int x,y,z,t;
int i = 1;
int dam = 0;
scanf("%d\n", &x);
scanf("%d\n", &y);
scanf("%d\n", &z);
scanf("%d\n", &t);
x = (2 << x);
dam = z - t;
i = 0;
while((y != 0) || (y > x)){
y += dam;
i++;
}
printf("%d", i);
return (0);
}
ECHO_1221