結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
![]() |
提出日時 | 2023-11-15 07:57:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 348 ms |
コンパイル使用メモリ | 81,872 KB |
実行使用メモリ | 53,636 KB |
最終ジャッジ日時 | 2024-09-26 04:34:00 |
合計ジャッジ時間 | 1,294 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
N = input() N = N[::-1] ans="" cnt=0 for i in range(len(N)): if cnt==3: ans+="," cnt=0 ans+=N[i] cnt+=1 print(ans[::-1])