結果
問題 |
No.1828 Except 3
|
ユーザー |
![]() |
提出日時 | 2025-03-19 10:57:00 |
言語 | C (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 495 bytes |
コンパイル時間 | 406 ms |
コンパイル使用メモリ | 26,112 KB |
実行使用メモリ | 14,772 KB |
最終ジャッジ日時 | 2025-03-19 10:57:06 |
合計ジャッジ時間 | 6,020 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | AC * 1 TLE * 1 -- * 14 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&n); | ^~~~~~~~~~~~~~ main.c:9:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%lld",&numList[i][j]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> void main(void){ int n = 0; scanf("%d",&n); long long int numList[3][n]; for(int i = 0;i < 3;i++){ for(int j = 0 ; j < n ; j++){ scanf("%lld",&numList[i][j]); } } int count = 0; for(int i = 0;i < n;i++){ if(numList[0][i]%3 == 0){ continue; } for(int j = 0 ; j < n ; j++){ if(numList[1][j]%3 == 0){ continue; } for(int k = 0 ; k< n ; k++){ if(numList[2][k]%3 == 0){ continue; } count++; } } } printf("%d",count); }