結果
| 問題 |
No.189 SUPER HAPPY DAY
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-22 01:00:56 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,656 KB |
| 最終ジャッジ日時 | 2024-07-04 23:22:49 |
| 合計ジャッジ時間 | 6,567 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 TLE * 1 -- * 1 |
| other | -- * 23 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%ld",&M);
| ^~~~~~~~~~~~~~~
main.c:13:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | scanf("%ld",&D);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
long int M,D,x,y,c=0,i, j;
scanf("%ld",&M);
scanf("%ld",&D);
for(j=1 ; j<=M ; j++)
{
for(i=1 ; i<=D ; i++ )
{
x = j/10 + j%10;
y = i/10 + i%10;
if(x == y)
{
c += 1;
}
}
}
printf("%ld\n",c%1000000009);
return 0;
}