結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
hirotakashin040
|
| 提出日時 | 2019-02-09 12:37:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 1,785 ms |
| コンパイル使用メモリ | 60,116 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 18:38:49 |
| 合計ジャッジ時間 | 1,502 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
string s ="123456789";
for(int i =s.size()-1 ; i>=0 ; i--)
{
if(i % 3 == 0 && i!=0 )
{
s.insert(i,",");
}
}
cout<<s<<endl;
}
hirotakashin040