結果
問題 | No.492 IOI数列 |
ユーザー |
|
提出日時 | 2020-08-29 09:30:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 244 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-14 05:12:42 |
合計ジャッジ時間 | 1,832 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
N = int(input())# mod 1000000007MOD = 1000000007inv99 = 646464651print((1 + 100 * (pow(100, N - 1, MOD) - 1) * inv99) % MOD)# mod 101010101010101010101if (Nd := ((N - 1) % 11)) == 10:print(0)else:print('10' * Nd + '1')