結果
| 問題 | No.2784 繰り上がりなし十進和 |
| コンテスト | |
| ユーザー |
june19312
|
| 提出日時 | 2024-06-14 23:15:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 666 bytes |
| コンパイル時間 | 473 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 53,840 KB |
| 最終ジャッジ日時 | 2024-06-14 23:15:57 |
| 合計ジャッジ時間 | 3,273 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 19 |
ソースコード
a = [set(),set(),set(),set(),set(),set()]
for i in range(6):
s = input()
for ii,vv in enumerate(s):
a[ii].add(int(vv))
ans = 1
for i in a:
gusuflg = False
kisuflg = False
flg5 = False
for j in sorted(i):
if j == 0:
continue
elif j == 5:
flg5 = True
elif j % 2 == 0:
gusuflg = True
elif j % 2 == 1:
kisuflg = True
if flg5 and not gusuflg and not kisuflg:
ans *= 2
elif gusuflg and not flg5 and not kisuflg:
ans *= 5
elif gusuflg and (flg5 or kisuflg):
ans *= 10
elif kisuflg:
ans *= 10
print(ans)
june19312