結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-17 12:18:35 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 1,000 ms |
| コード長 | 419 bytes |
| コンパイル時間 | 816 ms |
| コンパイル使用メモリ | 106,096 KB |
| 最終ジャッジ日時 | 2025-02-16 08:53:59 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
#ifdef _WIN32
#include <Windows.h>
#endif
int main()
{
int n;
cin >> n;
string s = "";
if (!n) s = "0";
while (n){
int t;
s = to_string(n%7) + s;
n /=7;
}
cout << s << endl;
}
kpinkcat