結果
問題 |
No.2706 One Nafmo
|
ユーザー |
|
提出日時 | 2024-11-01 20:02:04 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 530 bytes |
コンパイル時間 | 3,599 ms |
コンパイル使用メモリ | 272,800 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-01 20:02:16 |
合計ジャッジ時間 | 4,406 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef vector<P> VP; typedef vector<ll> VI; typedef vector<VI> VVI; #define REP(i, n) for (ll i = 0; i < (n); i++) #define ALL(v) v.begin(), v.end() #define OUT(n) cout << n << "\n" // constexpr ll MOD=998244353; // constexpr ll MOD=1000000007; // constexpr ll INF=2e18; int main() { ios::sync_with_stdio(false); cin.tie(0); ll A, B, X; cin >> A >> B >> X; ll ans = (X - 1) / A + 1; ans *= B; OUT(ans); }