結果
問題 | No.2102 [Cherry Alpha *] Conditional Reflection |
ユーザー |
![]() |
提出日時 | 2022-10-18 10:34:06 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 363 ms / 3,000 ms |
コード長 | 220 bytes |
コンパイル時間 | 2,508 ms |
コンパイル使用メモリ | 178,720 KB |
実行使用メモリ | 14,336 KB |
最終ジャッジ日時 | 2024-06-28 19:40:54 |
合計ジャッジ時間 | 18,981 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 70 |
ソースコード
set<ull>a;ll@n;rep(n){string@s,r="No";ull h=0;for(char c:s){h=h*27+c;}int b=0;ull m=0;rrep(i,s.size()){if(a.count(h+(b-s[i])*m)){r="Yes";}m=m?m*27:26;b=s[i];}wt(r);a.insert(h);}