結果
| 問題 |
No.2386 Udon Coupon (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-21 21:48:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 317 bytes |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 65,536 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 23:16:14 |
| 合計ジャッジ時間 | 1,802 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 10 WA * 27 |
ソースコード
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
using namespace std;
int main(int, char const *[])
{
int n, a,b,c;
int ans = 0;
cin >> n>>a>>b>>c;
ans=n/10*c+(n%10)/5*b+(n%5)/3*a;
cout << ans << endl;
return 0;
}
// vim: set ts=2 sw=2 sts=2: