結果
問題 | No.1101 鼻水 |
ユーザー |
|
提出日時 | 2020-07-03 21:26:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 449 ms |
コンパイル使用メモリ | 64,076 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-16 21:39:51 |
合計ジャッジ時間 | 1,436 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 11 |
コンパイルメッセージ
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=V*P*3; while(R-L>1) { long M=L+R>>1; if((M+T-1)/T+V*P<M)R=M; else L=M; } cout<<L<<endl; }