結果
問題 |
No.1453 手助け
|
ユーザー |
![]() |
提出日時 | 2021-03-31 21:10:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 751 ms |
コンパイル使用メモリ | 65,012 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 12:53:37 |
合計ジャッジ時間 | 1,553 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 19 |
ソースコード
#include <iostream> using namespace std; int main() { // your code goes here int a,b,c,d,e; cin >> a >> b >> c >> d >> e; int count=0; for(int i=1;i<a*(c-b)+1;i++){ if(i%10==0){ if(e<=d){ d=d-e; } } count=count+d; } cout << count; return 0; }