結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-17 12:17:07 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 398 bytes |
| 記録 | |
| コンパイル時間 | 691 ms |
| コンパイル使用メモリ | 129,520 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 04:47:03 |
| 合計ジャッジ時間 | 2,018 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 1 |
ソースコード
#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 = "";
while (n){
int t;
s = to_string(n%7) + s;
n /=7;
}
cout << s << endl;
}
kpinkcat