結果

問題 No.2706 One Nafmo
ユーザー rotti_coder
提出日時 2024-03-31 13:31:16
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 543 ms
コンパイル使用メモリ 69,384 KB
最終ジャッジ日時 2025-02-20 16:12:58
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
using namespace std;
int main()
{
  int a,b,x;
  cin >> a >> b >> x;
  if(x%b==0)cout << x/a*b << endl;
  else cout << (x/a+1)*b << endl;
}
0