結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2020-05-19 21:23:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 110 ms / 5,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-10-01 23:02:52 |
合計ジャッジ時間 | 4,735 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
D1={3: 20011, 1: 20063, 4: 19874, 5: 20199, 9: 19841, 2: 19892, 6: 19898, 8: 19956, 7: 20163, 0: 20104}S=input()import collectionsD2=collections.defaultdict(int)for s in S:if not s==".":D2[int(s)]+=1ans1,ans2=0,0for i in range(10):if D1[i]<D2[i]:ans1=ielif D1[i]>D2[i]:ans2=iprint(ans1,ans2)