結果
| 問題 | No.3453 Crape Shop |
| コンテスト | |
| ユーザー |
U10
|
| 提出日時 | 2026-02-28 13:36:27 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 420 bytes |
| 記録 | |
| コンパイル時間 | 1,522 ms |
| コンパイル使用メモリ | 165,608 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-02-28 13:36:30 |
| 合計ジャッジ時間 | 2,668 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge7 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main(){
int n,A,B,p,count = 0;
cin >> n >> A >> B;
while(A > 0 && B > 0) {
cin >> p;
if(p == 1){
A--;
} else if(p == 2) {
B--;
} else {
A--;
B--;
}
count++;
}
cout << count << endl;
return 0;
}
U10