結果
| 問題 | No.1089 三変数方程式 |
| ユーザー |
xRS43BofaUEZ5gc
|
| 提出日時 | 2021-03-19 13:29:53 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 2,616 ms |
| コンパイル使用メモリ | 81,916 KB |
| 実行使用メモリ | 43,692 KB |
| 最終ジャッジ日時 | 2026-05-12 20:31:44 |
| 合計ジャッジ時間 | 6,748 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 TLE * 1 -- * 13 |
ソースコード
import java.util.Scanner;
public class HelloWorld {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.close();
int count =0;
for (int x=0;x<=n;x++) {
for (int y=0;y<=n;y++) {
for(int z=0;z<=n;z++) {
if (x+y+z == n) {
count ++;
}
}
}
}
System.out.println(count);
}
}
xRS43BofaUEZ5gc