結果
問題 | No.406 鴨等間隔の法則 |
ユーザー | jj |
提出日時 | 2016-08-05 22:43:42 |
言語 | Fortran (gFortran 13.2.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 601 bytes |
コンパイル時間 | 1,727 ms |
コンパイル使用メモリ | 32,384 KB |
実行使用メモリ | 273,152 KB |
最終ジャッジ日時 | 2024-04-24 17:32:56 |
合計ジャッジ時間 | 7,822 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 61 ms
58,368 KB |
testcase_01 | RE | - |
testcase_02 | AC | 2 ms
5,376 KB |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 65 ms
53,120 KB |
testcase_05 | AC | 39 ms
35,840 KB |
testcase_06 | AC | 30 ms
25,984 KB |
testcase_07 | AC | 32 ms
26,880 KB |
testcase_08 | AC | 63 ms
51,968 KB |
testcase_09 | AC | 46 ms
31,360 KB |
testcase_10 | AC | 54 ms
49,920 KB |
testcase_11 | AC | 97 ms
88,064 KB |
testcase_12 | AC | 80 ms
76,672 KB |
testcase_13 | AC | 44 ms
39,680 KB |
testcase_14 | TLE | - |
testcase_15 | AC | 3 ms
5,376 KB |
testcase_16 | TLE | - |
testcase_17 | TLE | - |
testcase_18 | TLE | - |
testcase_19 | TLE | - |
testcase_20 | TLE | - |
testcase_21 | TLE | - |
testcase_22 | TLE | - |
testcase_23 | AC | 32 ms
23,424 KB |
testcase_24 | TLE | - |
testcase_25 | AC | 94 ms
79,360 KB |
testcase_26 | TLE | - |
testcase_27 | AC | 20 ms
5,376 KB |
testcase_28 | AC | 22 ms
5,376 KB |
testcase_29 | TLE | - |
testcase_30 | TLE | - |
testcase_31 | AC | 49 ms
33,792 KB |
ソースコード
integer::N,i,start=10**8,kankaku integer,allocatable::x(:) integer::zahyou(0:10**8) data zahyou/100000001*0/ read *, N allocate(x(N)) read *, x do i=1,N if(zahyou(x(i)).eq.1) then print '(a)', "NO" return end if zahyou(x(i)) = 1 start = MIN(start, x(i)) end do do i=start+1,10**8 if(zahyou(i).eq.1) then kankaku = i - start exit end if end do do i=start, start+(N-1)*kankaku, kankaku if(zahyou(x(i)).ne.1) then print '(a)', "NO" return end if end do print '(a)', "YES" end program