結果
問題 |
No.1585 Cubic Number
|
ユーザー |
![]() |
提出日時 | 2025-04-15 17:59:45 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 109 ms / 1,000 ms |
コード長 | 639 bytes |
コンパイル時間 | 9,033 ms |
コンパイル使用メモリ | 169,600 KB |
実行使用メモリ | 187,704 KB |
最終ジャッジ日時 | 2025-04-15 17:59:57 |
合計ジャッジ時間 | 11,769 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (111 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program { static void Main(string[] args) { long n = long.Parse(Console.ReadLine()); bool flg = false; for(long i = 1; i <= 1000000; i++) { if(i > n) { break; } if(i*i*i == n) { flg = true; break; } } if (flg) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }