結果
| 問題 | 
                            No.327 アルファベット列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             notetonous
                         | 
                    
| 提出日時 | 2016-04-09 01:31:08 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 278 bytes | 
| コンパイル時間 | 140 ms | 
| コンパイル使用メモリ | 20,992 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-04 04:58:51 | 
| 合計ジャッジ時間 | 1,287 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 50 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |   scanf("%lld",&N);
      |   ^~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
  long long int N;
  int i=0;
  long long int x;
  char buf[10];
  scanf("%lld",&N);
  N++;
  while(N>0){
    N--;
    buf[i]=(N%26)+65;
    N=N/26;
    i++;
  }
  while(i>=0){
    printf("%c",buf[i-1]);
    i--;
  }
  printf("\n");
  return 0;
}
            
            
            
        
            
notetonous