結果
| 問題 |
No.1101 鼻水
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-03 21:35:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 184 bytes |
| コンパイル時間 | 601 ms |
| コンパイル使用メモリ | 62,820 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-16 23:06:51 |
| 合計ジャッジ時間 | 1,106 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
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;
while(true)
{
long pre=L;
L=V*P+(L-1)/T+1;
if(pre==L)break;
}
cout<<L<<endl;
}