結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
|
提出日時 | 2015-12-24 12:31:48 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 194 bytes |
コンパイル時間 | 54 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 21:28:52 |
合計ジャッジ時間 | 727 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 RE * 4 |
ソースコード
aaa = input() ans = "" num = 0 for i in range(aaa): if (i+1)%3 == 0 and (i+1)%5 == 0: num = num + 4 elif (i+1)%3 == 0: num = num + 2 elif (i+1)%5 == 0: num = num + 2 print num