結果
| 問題 |
No.2482 Sandglasses
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-09-23 00:42:54 |
| 言語 | cLay (20241019-1) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 2,880 ms |
| コンパイル使用メモリ | 180,900 KB |
| 実行使用メモリ | 18,048 KB |
| 最終ジャッジ日時 | 2024-11-16 22:53:23 |
| 合計ジャッジ時間 | 7,688 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
ll@N,@K,@T,j,d[N],e[N];string@a[N];pair<ll,ll>b[N];rep(i,N){ll@c;b[i]={c,i};}rep(i,N)(((d[i]=b[i].first+(a[i]>"A"?T:-T))%=2K)<0?d[i]+=2K:d[i])<K?0:d[i]=2K-d[i];sort(b,b+N);sort(d,d+N);rep(i,N)e[b[i].second]=d[i];rep(i,N)wtSp(e[i]);