結果
問題 |
No.646 逆ピラミッド
|
ユーザー |
|
提出日時 | 2018-03-06 05:51:17 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 13:55:33 |
合計ジャッジ時間 | 904 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&num); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int num,print,value; scanf("%d",&num); value = num; for(; num > 0; num--) { print = num; for(; print > 0; print--){ printf("%d",value); } printf("\n"); } return 0; }