結果
| 問題 |
No.646 逆ピラミッド
|
| コンテスト | |
| ユーザー |
makition
|
| 提出日時 | 2018-04-24 13:58:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 22,784 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 15:54:04 |
| 合計ジャッジ時間 | 642 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &a);
| ~~~~~^~~~~~~~~~
ソースコード
#include <cstdio>
int main()
{
int a, b;
scanf("%d", &a);
printf("\n");
b = a;
for(int i = 0; 0 < b; i++) {
for(int j = 0; j < b; j++) {
printf("%d", a);
}
printf("\n");
b--;
}
return 0;
}
makition