結果
問題 |
No.499 7進数変換
|
ユーザー |
|
提出日時 | 2020-06-20 15:43:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 194 bytes |
コンパイル時間 | 1,989 ms |
コンパイル使用メモリ | 193,432 KB |
最終ジャッジ日時 | 2025-01-11 08:43:10 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; string ans; while(n){ ans+=n%7+'0'; n/=7; } for(auto i=ans.rbegin();i!=ans.rend();++i)cout<<*i; cout<<"\n"s; }