結果
問題 |
No.2140 Triangle
|
ユーザー |
![]() |
提出日時 | 2025-03-27 14:04:05 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 97 bytes |
コンパイル時間 | 337 ms |
コンパイル使用メモリ | 23,936 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-27 14:04:07 |
合計ジャッジ時間 | 1,886 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 28 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:12: warning: too many arguments for format [-Wformat-extra-args] 5 | printf("&d",2*a-1); | ^~~~ main.c:4:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&a); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void){ int a = 0; scanf("%d",&a); printf("&d",2*a-1); }