結果
| 問題 | No.176 2種類の切手 |
| コンテスト | |
| ユーザー |
kurenai3110
|
| 提出日時 | 2016-10-04 17:38:58 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 302 bytes |
| 記録 | |
| コンパイル時間 | 380 ms |
| コンパイル使用メモリ | 58,152 KB |
| 実行使用メモリ | 13,640 KB |
| 最終ジャッジ日時 | 2024-11-21 15:51:14 |
| 合計ジャッジ時間 | 9,311 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 25 TLE * 4 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int a, b, t; cin >> a >> b >> t;
if (a > b)swap(a, b);
int mn = 1000000001;
int x;
for (int i = 0; i*b <= t; i++){
mn = min(mn, (a - (t - i*b) % a)%a);
cout << mn << endl;
}
cout << mn + t << endl;
return 0;
}
kurenai3110