結果
問題 | No.327 アルファベット列 |
ユーザー |
![]() |
提出日時 | 2016-04-09 01:35:16 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 23:22:03 |
合計ジャッジ時間 | 1,249 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 50 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%lld",&N); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ long long int N; int i=0; char buf[10]; scanf("%lld",&N); N++; while(N>0){ N--; buf[i]=(N%26)+65; N=N/26; i++; } i--; while(i>=0){ printf("%c",buf[i]); i--; } printf("\n"); return 0; }