結果
| 問題 | No.3065 Speedrun (Normal) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-21 22:43:54 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 1,020 ms |
| コンパイル使用メモリ | 213,384 KB |
| 実行使用メモリ | 9,200 KB |
| 最終ジャッジ日時 | 2026-07-07 15:50:32 |
| 合計ジャッジ時間 | 2,210 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 WA * 7 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#include<atcoder/modint>
using namespace atcoder;
using mint=modint998244353;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll A[4],P[4];
for(int i=0;i<4;i++)cin>>A[i];
for(int i=0;i<4;i++)cin>>P[i];
ll T;
cin>>T;
ll S=0;
ll an=0;
for(int i=0;i<4;i++){
ll D=min(A[i],(T-S)/P[i]);
an+=D;
S+=P[i]*D;
}
cout<<an<<endl;
}