結果
問題 | No.1453 手助け |
ユーザー |
|
提出日時 | 2021-03-31 21:01:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 858 ms |
コンパイル使用メモリ | 63,872 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-15 08:24:37 |
合計ジャッジ時間 | 1,340 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;int A,B,C,D,E;main(){cin>>A>>B>>C>>D>>E;int ans=0;int X=D;A*=B-C;for(int i=1;i<=A;i++){if(i%10==0&&X>=E)X-=E;ans+=X;}cout<<ans<<endl;}