結果

問題 No.353 ヘイトプラス
ユーザー fjafjafjafjafjafja
提出日時 2017-09-17 13:04:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 1,000 ms
コード長 235 bytes
コンパイル時間 2,348 ms
コンパイル使用メモリ 74,260 KB
実行使用メモリ 54,356 KB
最終ジャッジ日時 2024-04-25 14:54:39
合計ジャッジ時間 4,005 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
54,060 KB
testcase_01 AC 129 ms
54,264 KB
testcase_02 AC 127 ms
54,032 KB
testcase_03 AC 125 ms
54,356 KB
testcase_04 AC 132 ms
54,268 KB
testcase_05 AC 130 ms
54,288 KB
testcase_06 AC 128 ms
54,072 KB
testcase_07 AC 132 ms
54,192 KB
testcase_08 AC 132 ms
54,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main
{
public static void main(String[] args)
{
Scanner sc=new Scanner (System.in);
int a=sc.nextInt(),b=sc.nextInt();
int cnt=0;
for(int i=0;i>-a-b;i--)
{
cnt--;
}
System.out.println((int)Math.abs(cnt));
}
}
0