結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2017-05-17 23:56:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 45,684 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-17 21:06:11 |
合計ジャッジ時間 | 1,271 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 1 |
ソースコード
#include <cstdio> #include <string> using namespace std; string itoa(int n,int b){ string s=""; while(n){ s=to_string(n%b)+s; n/=b; } return s; } int main(){ int n; int _=scanf("%d",&n); puts(itoa(n,7).c_str()); return 0; }