結果
| 問題 | No.176 2種類の切手 |
| コンテスト | |
| ユーザー |
kyuna
|
| 提出日時 | 2018-11-03 01:26:02 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 40,592 KB |
| 実行使用メモリ | 9,900 KB |
| 最終ジャッジ日時 | 2026-09-27 03:42:06 |
| 合計ジャッジ時間 | 2,095 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
#include <cstdio>
int main() {
int a, b, t;
int ans = 2e9;
scanf("%d %d %d", &a, &b, &t);
for (int i = 0; i <= t / b && i < a; i++) {
int tmp = b * i + (t - b * i + a - 1) / a * a;
if (ans > tmp) ans = tmp;
}
printf("%d", ans);
return 0;
}
kyuna