結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-22 12:58:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 159 ms / 1,000 ms |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-08 02:24:45 |
| 合計ジャッジ時間 | 5,847 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
A = [int(i) for i in input().split()]
res = 0
for i in A:
if i % 3 == 0 and i % 5 == 0:res += 8
elif i % 3 == 0 or i % 5 == 0:res += 4
else:res += len(str(i))
print(res)