結果
問題 |
No.928 軽減税率?
|
ユーザー |
|
提出日時 | 2019-10-29 06:06:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 486 ms |
コンパイル使用メモリ | 63,104 KB |
実行使用メモリ | 13,824 KB |
最終ジャッジ日時 | 2024-09-14 21:24:16 |
合計ジャッジ時間 | 4,883 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 -- * 1 |
other | -- * 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; }