結果
問題 |
No.1882 Areas of Triangle
|
ユーザー |
|
提出日時 | 2022-03-24 22:01:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 507 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 32,128 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-13 05:41:46 |
合計ジャッジ時間 | 3,708 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 -- * 4 |
other | WA * 3 TLE * 1 -- * 20 |
ソースコード
#include <stdio.h> int main() { int N,K,l,i,j,count; printf("Nの値を入力:"); scanf("%d",&N); printf("Kの値を入力:"); scanf("%d",&K); count=0; int A[N],S[N][N]; for(l=1;l<=N;l++){ printf("%d番目の値を入力:",l); scanf("%d",&A[l]); } for(i=1;i<=N;i++){ for(j=1;j<=N;j++){ if((A[i]*A[j])/2>=K){ count++; } } } printf("%d\n",count); return 0; }