結果
| 問題 | No.3085 Easy Problems |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-01-03 18:20:17 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 577 bytes |
| 記録 | |
| コンパイル時間 | 643 ms |
| コンパイル使用メモリ | 72,148 KB |
| 実行使用メモリ | 14,372 KB |
| 最終ジャッジ日時 | 2026-01-03 18:20:23 |
| 合計ジャッジ時間 | 6,220 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 30 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
int arr[n][2];
for(int i=0;i<n;i++){
cin>>arr[i][0];
cin>>arr[i][1];
}
int y;
cin>>y;
int count=0;
int hero[y][2];
for(int i=0;i<y;i++){
cin>>hero[i][0];
cin>>hero[i][1];
}
for(int i=0;i<y;i++){
for(int j=0;j<n;j++){
if(arr[j][0]<=hero[i][0]){
if(arr[j][1]!=hero[i][1]){
count++;
}
}
}
cout<<count<<endl;
count=0;
}
}
vjudge1