結果
問題 |
No.189 SUPER HAPPY DAY
|
ユーザー |
|
提出日時 | 2015-04-22 00:52:43 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 350 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,784 KB |
最終ジャッジ日時 | 2024-07-04 23:15:31 |
合計ジャッジ時間 | 6,603 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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; }