結果
問題 | No.499 7進数変換 |
ユーザー |
|
提出日時 | 2017-10-23 03:29:36 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 1,264 ms |
コンパイル使用メモリ | 160,228 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 14:54:41 |
合計ジャッジ時間 | 2,127 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(void) {int n;cin >> n;string ans = "";if (!n) ans = "0";while (n) {ans = (char)(n % 7 + '0') + ans;n /= 7;}cout << ans << endl;return 0;}