結果
問題 | No.646 逆ピラミッド |
ユーザー |
![]() |
提出日時 | 2018-08-11 11:56:51 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 22,656 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-23 06:08:59 |
合計ジャッジ時間 | 598 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d", &a); | ~~~~~^~~~~~~~~~
ソースコード
#include<stdio.h>int main() {int a,b;scanf("%d", &a);b = a;for (int i = 0; i < b; i++) {for (int j = 0; j<a; j++) {printf("%d", a+i);}printf("\n");a--;}getchar();getchar();return 0;}