結果
| 問題 | No.327 アルファベット列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-28 19:58:08 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 76,896 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-14 07:18:58 |
| 合計ジャッジ時間 | 2,507 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 21 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
//first one :A-Z:0-25
//the other :A-Z:1-26
int main(){
long int n;
int m;
bool flag = true;
string ans = "";
vector<int> q;
cin >> n;
do{
m=n%26;
n=n/26;
if(flag){
flag = !flag;
ans = char('A'+m)+ans;
}
else
ans = char('A'+m-1)+ans;
}while(n!=0);
cout << ans << endl;
}