結果

問題 No.353 ヘイトプラス
ユーザー toto
提出日時 2025-03-27 17:46:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 26,880 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-27 17:46:49
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 2 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
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("%ld%ld",&right,&left);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(){
	long right,left;
	scanf("%ld%ld",&right,&left);
	
	right *= -1;
	left *= -1;
	
	long ans = (right - left) * -1;
	printf("%ld",ans);
}
0