結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-05-02 01:35:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 256 bytes |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 55,528 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 01:16:45 |
| 合計ジャッジ時間 | 1,774 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 29 WA * 21 |
コンパイルメッセージ
main.cpp:1:19: warning: extra tokens at end of #include directive
1 | #include<iostream>=
| ^
ソースコード
#include<iostream>=
#include<string>
using namespace std;
int main(){
long long N;
long long waru=1;
string ans="";
cin>>N;
while(N!=0) ans+=(char)(N%26+'A'),N/=26;
for(int i=ans.size()-1;i>=1;i--) cout<<(char)(ans[i]-1);
cout<<ans[0]<<endl;
}
kongarishisyamo