結果
問題 |
No.1593 Perfect Distance
|
ユーザー |
![]() |
提出日時 | 2021-07-22 16:35:47 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 402 ms |
コンパイル使用メモリ | 29,568 KB |
実行使用メモリ | 13,752 KB |
最終ジャッジ日時 | 2024-07-17 14:56:25 |
合計ジャッジ時間 | 6,462 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 12 TLE * 1 -- * 4 |
ソースコード
#include <stdio.h> int main(void){ int N,i,j,k=0; scanf("%d",&N); for(i=1;i<=N;i++){ for(j=1;j<=N;j++){ if(i*i+j*j==N*N){ k++; } } } printf("%d\n",k); return 0; }