func_code_string: #include <bits/stdc++.h>   inline long long read() {     long long x = 0;     char ch = getchar(), w = 1;     while (ch <  0  || ch >  9 ) {       if (ch ==  - ) w = -1;       ch = getchar();     }     while (ch >=  0  && ch <=  9 ) {       x = x * 10 + ch -  0 ;       ch = getchar();     }     return x * w;   }   void write(long long x) {     if (x < 0) putchar( - ), x = -x;     if (x > 9) write(x / 10);     putchar(x % 10 +  0 );   }   inline void writeln(long long x) {     write(x);     puts(  );   }   using namespace std;   const int N = 3e5 + 666;   long long a[N], n;   const long long mo = 998244353;   long long ksm(long long x, long long y) {     long long res = 1;     for (; y; y >>= 1, x = x * x % mo)       if (y & 1) res = res * x % mo;     return res;   }   int main() {     n = read();     long long inv = ksm(100, mo - 2);     for (int i = 1; i <= n; ++i) a[i] = read() * inv % mo;     long long e1 = 0, s = 1;     for (int i = 1; i <= n; ++i) {       e1 += s;       s *= a[i] % mo;       s %= mo;       e1 %= mo;     }     e1 = e1 * ksm(s, mo - 2) % mo;     long long ans = 0;     for (int i = n; i >= 1; --i) {       ans = ans * a[i] % mo + (1 - a[i] + mo) * e1 % mo;       ans += 1;       ans %= mo;     }     writeln(ans);     return 0;   }   