結果
問題 |
No.189 SUPER HAPPY DAY
|
ユーザー |
|
提出日時 | 2015-04-22 00:32:06 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 938 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 8,220 KB |
最終ジャッジ日時 | 2024-07-04 20:40:20 |
合計ジャッジ時間 | 6,650 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 TLE * 1 -- * 1 |
other | -- * 23 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%ld",&M); | ^~~~~~~~~~~~~~~ main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | 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); return 0; }