結果
問題 | No.745 letinopia raoha |
ユーザー |
![]() |
提出日時 | 2019-08-30 13:19:38 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 608 bytes |
コンパイル時間 | 1,206 ms |
コンパイル使用メモリ | 30,336 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 05:36:50 |
合計ジャッジ時間 | 996 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> int main(void) { int a,b,c,d,score=0,combo=0,pf=100,gr=50; scanf("%d %d %d %d",&a,&b,&c,&d); if(d>=10) { printf("Impossible"); return 0; } while(b) { score+=gr; combo++; if(combo%100==0) { gr*=2; pf*=2; } b--; } while(a) { score+=pf; combo++; if(combo%100==0) { pf*=2; } a--; } printf("Possible\n%d",score); }