結果
| 問題 | No.1327 グラフの数え上げ |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:25:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 195 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 82,636 KB |
| 実行使用メモリ | 101,000 KB |
| 最終ジャッジ日時 | 2025-03-20 20:26:32 |
| 合計ジャッジ時間 | 1,980 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 1 WA * 12 |
ソースコード
MOD = 10**9 + 7
n_str = input().strip()
mod_result = 0
for c in n_str:
mod_result = (mod_result * 10 + int(c)) % MOD
if mod_result == 1:
print(0)
else:
print((mod_result - 1) % MOD)
lam6er