結果
問題 |
No.1453 手助け
|
ユーザー |
|
提出日時 | 2021-03-31 21:29:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 1,244 ms |
コンパイル使用メモリ | 157,904 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-15 15:18:40 |
合計ジャッジ時間 | 2,021 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void){ long a,B,c,x,e,goukei=0;cin >> a >> B >> c >> x >> e; int b=B-c; for(int i=0;i<b*a;i++){ if(i%10==0 && e<=x){ x=x-e; } goukei=goukei+x; } cout << goukei << endl; }