結果

問題 No.2716 Falcon Method
ユーザー tailstails
提出日時 2024-04-05 23:08:06
言語 cLay
(20240104-1)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 3,200 ms
コンパイル使用メモリ 176,396 KB
実行使用メモリ 15,420 KB
最終ジャッジ日時 2024-04-05 23:08:12
合計ジャッジ時間 6,273 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,616 KB
testcase_01 AC 3 ms
7,616 KB
testcase_02 AC 2 ms
7,616 KB
testcase_03 AC 2 ms
7,616 KB
testcase_04 AC 2 ms
7,616 KB
testcase_05 AC 2 ms
7,616 KB
testcase_06 AC 2 ms
7,616 KB
testcase_07 AC 3 ms
7,616 KB
testcase_08 AC 3 ms
7,616 KB
testcase_09 AC 3 ms
7,616 KB
testcase_10 AC 3 ms
7,616 KB
testcase_11 AC 62 ms
15,024 KB
testcase_12 AC 83 ms
14,888 KB
testcase_13 AC 70 ms
14,888 KB
testcase_14 AC 100 ms
14,144 KB
testcase_15 AC 71 ms
14,620 KB
testcase_16 AC 82 ms
14,016 KB
testcase_17 AC 96 ms
14,272 KB
testcase_18 AC 114 ms
14,612 KB
testcase_19 AC 83 ms
13,868 KB
testcase_20 AC 71 ms
14,656 KB
testcase_21 AC 50 ms
14,128 KB
testcase_22 AC 55 ms
15,420 KB
testcase_23 AC 95 ms
15,420 KB
testcase_24 AC 52 ms
15,420 KB
testcase_25 AC 3 ms
7,616 KB
testcase_26 AC 2 ms
7,616 KB
testcase_27 AC 76 ms
15,420 KB
testcase_28 AC 76 ms
15,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@q,a[2n]{},b[]{};string@s;rep(i,2n-1)@[a,b][i+1]=@[a,b][i]+(s[i%n]@[=,!]='D');rep(q){ll@h--,@w--,@p,x=ll_inf,y=x,d;if(d=a[n])x=h/d*n+bsearch_min[ll,j,p,p+n](a[j]-a[p]>h%d);if(d=b[n])y=w/d*n+bsearch_min[ll,j,p,p+n](b[j]-b[p]>w%d);wt(min(x,y)%n);}
0