結果
問題 | No.1101 鼻水 |
ユーザー |
|
提出日時 | 2020-07-03 21:33:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 1,177 ms |
コンパイル使用メモリ | 64,784 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-16 23:04:09 |
合計ジャッジ時間 | 1,480 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 12 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;long V,T,P;main(){cin>>V>>T>>P;++P;long L=V*P,R=4e18;while(R-L>1){long M=L+R>>1;if((M-1)/T+1+V*P<M)R=M;else L=M;}cout<<L<<endl;}