| 提出番号 | 612 |
|---|---|
| 提出者 | fal_rnd |
| 言語 | Java |
| 提出日時 | 2017-07-27 13:35:51 |
| 問題名 | (11)いわゆる検索 |
| 結果 | MLE |
| 点数 | 0% |
| テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
|---|---|---|---|---|
| 1 | AC | 100% | 295ms | 121824KB |
| 2 | AC | 100% | 232ms | 123184KB |
| 3 | MLE | 0% | 2023ms | 349744KB |
| 4 | MLE | 0% | 2087ms | 344496KB |
| 5 | MLE | 0% | 1796ms | 270352KB |
| 6 | MLE | 0% | 1809ms | 272992KB |
| 7 | MLE | 0% | 1996ms | 273408KB |
| 8 | MLE | 0% | 1938ms | 330080KB |
| 9 | MLE | 0% | 1931ms | 272768KB |
| 10 | MLE | 0% | 2060ms | 354032KB |
| 11 | MLE | 0% | 1820ms | 271056KB |
| 12 | MLE | 0% | 2026ms | 340896KB |
| 13 | MLE | 0% | 1857ms | 273216KB |
| 14 | MLE | 0% | 1741ms | 275600KB |
| 15 | MLE | 0% | 2025ms | 342720KB |
| 16 | MLE | 0% | 1634ms | 335968KB |
| 17 | MLE | 0% | 1764ms | 274144KB |
| 18 | MLE | 0% | 1884ms | 278720KB |
| 19 | MLE | 0% | 1915ms | 274976KB |
| 20 | MLE | 0% | 1894ms | 338704KB |
import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.IntStream;
public class Main{
static Scanner s=new Scanner(System.in);
static int getInt(){return Integer.parseInt(s.next());};
static IntStream REPS(int n){return IntStream.range(0,n);};
static IntStream REPS(int b,int e){return IntStream.rangeClosed(b,e);};
static IntStream INS(int n){return IntStream.range(0,n).map(i->getInt());};
public static void main(String[]$){
int n=getInt();
int[]a=INS(n).toArray();
INS(getInt()).map(i->{
int v=Arrays.binarySearch(a,i);
return v<0?n-~v:n-v;
}).forEach(System.out::println);
}
}