結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-22 21:27:53 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 572 ms |
| コンパイル使用メモリ | 76,480 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-03 05:15:33 |
| 合計ジャッジ時間 | 3,517 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 1 |
ソースコード
#include <algorithm> // for reverse
#include <iostream>
#include <sstream>
//#include <string>
using namespace std;
int main(int argc, char *argv[])
{
long long int N;
cin >> N;
stringstream ss;
while (N > 0) ss << N % 7, N /= 7;
string s = ss.str();
reverse(s.begin(), s.end());
cout << s;
return 0;
}