結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
|
提出日時 | 2020-06-04 21:48:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 841 ms |
コンパイル使用メモリ | 66,688 KB |
最終ジャッジ日時 | 2025-01-10 21:21:17 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string s;cin>>s; int n=s.length(); for(int i=0;i<n;++i){ if(i!=0&&i%3==n%3)cout<<','; cout<<s[i]; } cout<<"\n"; }