結果
問題 |
No.1453 手助け
|
ユーザー |
![]() |
提出日時 | 2021-03-31 21:10:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 385 bytes |
コンパイル時間 | 1,743 ms |
コンパイル使用メモリ | 167,796 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 12:52:16 |
合計ジャッジ時間 | 2,623 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d,e; cin >> a >> b >> c >> d >> e; int ans = d; for(int i=2;i<a;i++){ if(i%10==0){ ans+=d; } else if(i%10!=0&&e<=d){ ans = d-e; ans+=d; } else{ ans+=d; } } cout << a*(b-c)*ans << endl; }