結果
| 問題 | No.2706 One Nafmo |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-05-10 23:04:55 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 1,313 ms |
| コンパイル使用メモリ | 214,448 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-10 23:04:59 |
| 合計ジャッジ時間 | 3,103 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
const int N=1e6+10,M=1e9+7;
stack<int>st;
ll n,a,b,c,pre[N],mi=1e18,ma=0,k,d=0,q,m,ans=0,x;
vector<ll>vec;
map<ll,ll>dem;
string s;
signed main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cin>>a>>b>>x;
if(x<=a)
cout<<b;
else
if(x%a==0)
cout<<(x/a)*b;
else
if(x%a!=0)
cout<<(x/a)*b+b;
}
vjudge1