AtCoder Regular Contest 082

Submission #1567322

Source codeソースコード

M=998244353;N=gets.to_i;v=$<.map{|e|Complex(*e.split.map(&:to_i))};h={};r=2**N+~N;[*0...N].combination(2){|i,j|h[x=[i,j]]||((j+1...N).map{|k|((v[j]-v[k]).conj*(v[i]-v[k])).imag.abs<1e-9&&x<<k};r-=2**(l=x.size)+~l;x.combination(2){|a,b|h[[a,b]]=1})};p r%M

Submission

Task問題 E - ConvexScore
User nameユーザ名 cf16::002_ciel
Created time投稿日時
Language言語 Ruby (2.3.3)
Status状態 AC
Score得点 700
Source lengthソースコード長 254 Byte
File nameファイル名
Exec time実行時間 1948 ms
Memory usageメモリ使用量 5372 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - 0_000.txt,0_001.txt,0_002.txt
All 700 / 700 0_000.txt,0_001.txt,0_002.txt,1_003.txt,1_004.txt,1_005.txt,1_006.txt,1_007.txt,1_008.txt,1_009.txt,1_010.txt,1_011.txt,1_012.txt,1_013.txt,1_014.txt,1_015.txt,1_016.txt,1_017.txt,1_018.txt,1_019.txt,1_020.txt,1_021.txt,1_022.txt,1_023.txt,1_024.txt,1_025.txt,1_026.txt,1_027.txt,1_028.txt,1_029.txt,1_030.txt,1_031.txt,1_032.txt,1_033.txt,1_034.txt,1_035.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
0_000.txt AC 6 ms 1788 KB
0_001.txt AC 7 ms 1788 KB
0_002.txt AC 7 ms 1788 KB
1_003.txt AC 7 ms 1788 KB
1_004.txt AC 7 ms 1788 KB
1_005.txt AC 474 ms 3196 KB
1_006.txt AC 7 ms 3836 KB
1_007.txt AC 591 ms 3452 KB
1_008.txt AC 362 ms 3324 KB
1_009.txt AC 542 ms 3324 KB
1_010.txt AC 125 ms 2300 KB
1_011.txt AC 685 ms 3452 KB
1_012.txt AC 872 ms 3580 KB
1_013.txt AC 433 ms 3196 KB
1_014.txt AC 10 ms 1788 KB
1_015.txt AC 43 ms 3452 KB
1_016.txt AC 24 ms 2428 KB
1_017.txt AC 1871 ms 5116 KB
1_018.txt AC 1948 ms 5116 KB
1_019.txt AC 1043 ms 4988 KB
1_020.txt AC 1016 ms 4988 KB
1_021.txt AC 1181 ms 4988 KB
1_022.txt AC 1452 ms 5116 KB
1_023.txt AC 1697 ms 5372 KB
1_024.txt AC 1668 ms 5116 KB
1_025.txt AC 1519 ms 5116 KB
1_026.txt AC 1514 ms 5116 KB
1_027.txt AC 63 ms 4860 KB
1_028.txt AC 63 ms 4860 KB
1_029.txt AC 1509 ms 5116 KB
1_030.txt AC 1818 ms 5116 KB
1_031.txt AC 1862 ms 5116 KB
1_032.txt AC 1824 ms 5116 KB
1_033.txt AC 1824 ms 5116 KB
1_034.txt AC 1920 ms 5116 KB
1_035.txt AC 1136 ms 4988 KB