結果
問題 |
No.313 π
|
ユーザー |
👑 |
提出日時 | 2022-07-04 14:35:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 51 ms / 5,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 420 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 72,320 KB |
最終ジャッジ日時 | 2024-12-14 04:09:42 |
合計ジャッジ時間 | 3,939 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
cnt = [20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841] n = input() cnt2 = [0] * 10 n = n.replace(".", "") for s in n: cnt2[int(s)] += 1 a = -1 b = -1 for i in range(10): if cnt2[i] > cnt[i]: a = i elif cnt2[i] < cnt[i]: b = i print(a, b)