結果
| 問題 |
No.313 π
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-06 00:24:11 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 5,000 ms |
| コード長 | 375 bytes |
| コンパイル時間 | 484 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 8,576 KB |
| 最終ジャッジ日時 | 2024-09-14 14:55:01 |
| 合計ジャッジ時間 | 5,900 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 |
ソースコード
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
ans = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841]
s = raw_input().replace(".", "")
cnt = [0]*10
for si in s:
cnt[int(si)] += 1
for i in xrange(10):
if ans[i] < cnt[i]:
a = i
if ans[i] > cnt[i]:
b = i
print a, b