結果
問題 |
No.646 逆ピラミッド
|
ユーザー |
![]() |
提出日時 | 2018-02-11 14:37:16 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 545 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-16 06:06:49 |
合計ジャッジ時間 | 1,324 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 7 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&n); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <string.h> int main(){ int n; int i,j; scanf("%d",&n); for(i=n;0<i;i--){ for(j=0;j<i;j++){ printf("%d",n); } printf("\n\n"); } return 0; }