結果
問題 |
No.327 アルファベット列
|
ユーザー |
![]() |
提出日時 | 2016-05-21 11:33:57 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 728 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-06 16:36:23 |
合計ジャッジ時間 | 1,940 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 WA * 21 |
コンパイルメッセージ
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; char str[1024]; scanf("%lld", &N); int i = 0; while(N>=0){ if(i){ str[i] = N%26 + 64; } else{ str[i] = N%26 + 65; } N = N/26; if(N == 0){ break; } i++; } while(i >= 0){ printf("%c", str[i]); i--; } printf("\n"); return 0; }