結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
![]() |
提出日時 | 2020-11-02 17:55:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 179 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-22 06:25:47 |
合計ジャッジ時間 | 1,038 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 10 |
ソースコード
n=input() ans=n[-1] for i in range(n-2,0,-1): if (n-i)%3==0: ans=n[i]+ans ans=","+ans else: ans=n[i]+ans if len(n)!=1: ans=n[0]+ans print(ans)