結果
問題 | No.928 軽減税率? |
ユーザー |
|
提出日時 | 2019-10-29 06:04:43 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 519 ms |
コンパイル使用メモリ | 119,936 KB |
実行使用メモリ | 16,848 KB |
最終ジャッジ日時 | 2024-11-30 15:33:52 |
合計ジャッジ時間 | 75,904 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 2 |
other | TLE * 34 |
ソースコード
#include <iostream> int main() { long long p, q, A; std::cin >> p >> q >> A; long long P = p, Q = q; int ans = 0; for(int i = 1; i <= 1000000000; ++i, P += p, Q += q) { ans += (P / 100 - Q / 100 < A); } std::cout << ans << std::endl; return 0; }