結果
問題 |
No.1101 鼻水
|
ユーザー |
![]() |
提出日時 | 2020-07-03 21:44:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 364 bytes |
コンパイル時間 | 1,550 ms |
コンパイル使用メモリ | 165,812 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-16 23:50:41 |
合計ジャッジ時間 | 2,408 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 12 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:12:9: warning: 'ans' is used uninitialized [-Wuninitialized] 12 | ans += V; | ~~~~^~~~ main.cpp:11:8: note: 'ans' was declared here 11 | ll ans; | ^~~
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i = 0; i < (int)(n); i++) #define repr(i,n) for(int i = (int)(n); i >= 0; i--) #define all(v) v.begin(),v.end() typedef long long ll; int main(){ ll V,T,P; cin >> V >> T >> P; ll ans; ans += V; ans += V * P; ans += V * (P + 1) / (T - 1) + 1; cout << ans << endl; }