結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
|
提出日時 | 2019-07-05 06:07:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 69,688 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 20:08:24 |
合計ジャッジ時間 | 1,097 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; typedef long long int ll; int main(){ string s; cin >>s; for(int i=0;i<s.size();i++){ int m=s.size()-i; if(m!=s.size()&&m%3==0){ cout << ","; } cout << s[i] ; } cout << endl; }